{ "id": "104503", "key": "TIMOB-11862", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-08-25T21:23:07.000+0000", "created": "2012-11-07T10:25:32.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T21:58:17.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I created a module that contains an underline in the package name.\r\nFor example, \"com.ad_stir.ti\".\r\nHowever, my module threw the exception.\r\n{code} \r\n11-07 19:06:21.860: E/TiApplication(4676): java.lang.UnsatisfiedLinkError: nativeBootstrap\r\n11-07 19:06:21.860: E/TiApplication(4676): \tat com.ad_stir.ti.AdstirsdkBootstrap.nativeBootstrap(Native Method)\r\n11-07 19:06:21.860: E/TiApplication(4676): \tat com.ad_stir.ti.AdstirsdkBootstrap.bootstrap(AdstirsdkBootstrap.java:17)\r\n{code} \r\nWorking Patch\r\n{code} \r\n--- mobilesdk/linux/2.1.3.GA/module/android/bootstrap.py\r\n+++ mobilesdk/linux/2.1.3.GA/module/android/bootstrap.py\r\n@@ -332,7 +332,7 @@\r\n \t\topen(genBindings, \"w\").write(gperfTemplate % gperfContext)\r\n \r\n \tdef generateNative(self, javaTemplate, cppTemplate, javaDir, cppDir):\r\n-\t\tjniPackage = self.moduleId.replace(\".\", \"_\")\r\n+\t\tjniPackage = self.moduleId.replace(\"_\", \"_1\").replace(\".\", \"_\")\r\n \t\tclassName = self.moduleName[0:1].upper() + self.moduleName[1:]\r\n \r\n \t\tcontext = {\r\n{code} \r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Module package name with underscore throws an exception", "creator": { "name": "reiji-terasaka", "key": "reiji-terasaka", "displayName": "reiji-terasaka", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "reiji-terasaka", "key": "reiji-terasaka", "displayName": "reiji-terasaka", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android module\r\nTitanium mobile sdk 2.1.3\r\n", "comment": { "comments": [ { "id": "394433", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I cannot reproduce with Titanium SDK 5.4.0.GA. We introduced a new module build system in 5.0.0 that doesn't have a problem.\r\n\r\nNote: while trying to reproduce this, I uncovered and fixed TIMOB-23827.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-25T21:23:08.000+0000", "updated": "2016-08-25T21:23:08.000+0000" }, { "id": "415811", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T21:58:17.000+0000", "updated": "2017-03-24T21:58:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }