{ "id": "84238", "key": "TIMOB-6861", "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": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-09T07:53:16.000+0000", "created": "2011-12-23T05:00:24.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-09T01:13:50.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": "h2. Problem\r\n\r\nAfter the official release of the Titanium 1.8.0.1, and porting existing modules in line with the [Upgrading Android Modules to 1.8.0.1|http://developer.appcelerator.com/blog/2011/12/upgrading-android-modules-to-1-8-0-1.html] guide, these modules will not compile, returning the error below. Numerous attempts were made, but all failed.\r\n\r\nThe modules were working ok on 1.8.0.1.RC1, 1.8.0.1.RC2 and 1.8.0.1.RC3.\r\n\r\nh2. Test case\r\n\r\n* create a new titanium module form scratch, using the 1.8.0.1 SDK\r\n** $ titanium1801 create --platform=android --name=test --id=com.test --type=module \r\n\r\n* edit the TestModule.java file\r\n** $ vim src/com/test/TestModule.java\r\n\r\n* inside the TestModule class, add a @Kroll.constant with a \"dynamic\" initializer\r\n\r\n{code:java}\r\n @Kroll.constant public static final String EXTERNAL_NAME = new String(\"foo\");\r\n{code}\r\n\r\n* try to compile the module\r\n** $ ant clean && ant\r\n\r\n* it doesn't compile, see the log error bellow\r\n\r\nh2. Logs\r\n\r\n{code}\r\n [exec] Compile++ thumb : com.test <= com.test.TestModule.cpp\r\n [exec] jni/com.test.TestModule.cpp: In static member function 'static v8::Handle com::test::TestModule::getProxyTemplate()':\r\n [exec] jni/com.test.TestModule.cpp:111: error: no matching function for call to 'v8::String::New(_jobject*&)'\r\n [exec] /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/android/native/include/v8.h:1187: note: candidates are: static v8::Local v8::String::New(const char*, int)\r\n [exec] /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/android/native/include/v8.h:1190: note: static v8::Local v8::String::New(const uint16_t*, int)\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Tooling: Android: Cannot compile modules", "creator": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* OS: Mac OS\r\n* SDK: 1.8.0.1 Final\r\n* Android SDK: 2.2\r\n* Android NDK: android-ndk-r7\r\n* Javascript runtime: V8\r\n* Titanium Studio Version: N/A (using the console)", "comment": { "comments": [ { "id": "177111", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Have you reviewed http://developer.appcelerator.com/blog/2011/12/upgrading-android-modules-to-1-8-0-1.html as yet? Thanks...", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-23T06:28:40.000+0000", "updated": "2011-12-23T06:28:40.000+0000" }, { "id": "177112", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Kevin. I did, otherwise the modules wouldn't even compile and ran on 1.8.0.1.RC1. \r\n\r\nLet me stress that the modules were converted/ported and were working perfectly fine on 1.8.0.1.RC1 through RC3.", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-23T06:36:57.000+0000", "updated": "2011-12-23T06:36:57.000+0000" }, { "id": "177113", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this, Ruben.\r\n\r\nIn order for me to escalate it to the core team, this ticket must follow the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] and hence include a test case, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase]. This will allow our engineers to reliably reproduce the problem and prove the fix.\r\n\r\nI will close this for now. Please reopen the ticket once it is complete, and I will move it directly to the main project and, in addition, notify the relevant members of our team.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T07:05:49.000+0000", "updated": "2011-12-23T07:05:49.000+0000" }, { "id": "177148", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Paul. I've managed to reduce the problem to the line causing it. Again, I don't have any button to reopen the bug, can you please do it if that's ok? Thanks", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-24T08:12:59.000+0000", "updated": "2011-12-24T08:12:59.000+0000" }, { "id": "177164", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hi Ruben\r\n\r\nThanks for the effort you have made - this ticket looks perfect to me now! ;) \r\n\r\nI will certainly reopen it for you - I am concerned that you don't see the button. I will have to investigate this. :/\r\n\r\nI will move the ticket to the main project now.\r\n\r\nCheers\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-25T09:24:38.000+0000", "updated": "2011-12-25T09:24:38.000+0000" }, { "id": "177549", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "Ruben,\r\n\r\nYou can open reported by you tickets with comment from now.\r\n\r\nRegards", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-12-29T05:13:54.000+0000", "updated": "2011-12-29T05:13:54.000+0000" }, { "id": "190319", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should be fixed now, module compilation has been tested pretty thoroughly at this point.. Please re-open if still encountering with 1.8.2", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T07:53:16.000+0000", "updated": "2012-04-09T07:53:16.000+0000" }, { "id": "410197", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T01:13:50.000+0000", "updated": "2017-03-09T01:13:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }