{ "id": "63944", "key": "TIMOB-3312", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11245", "name": "Sprint 2011-10", "archived": true, "released": true, "releaseDate": "2011-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-26T09:50:50.000+0000", "created": "2011-04-15T03:41:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "compiler", "defect", "release-1.6.1", "release-1.7.0", "reported-1.6.1", "rplist", "url" ], "versions": [], "issuelinks": [ { "id": "10226", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64766", "key": "TIMOB-3697", "fields": { "summary": "Confirm TIMOB-3312", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-26T09:50: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": "{html}

In evaluated mode, an app:// URL with a preceding \"/\" is\nresolved to an absolute path, but in compiled mode we replace the\nleading slash with an underscore and the class isn't found at\nruntime

{html}", "attachment": [], "flagged": false, "summary": "Android: Correctly handle app:/// URLs in compiled JS", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130510", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [6d9b0f3e05ba71621da82c4ca98f4d5d1b250705])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/6d9b0f3e05ba...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:54.000+0000", "updated": "2011-04-15T03:41:54.000+0000" }, { "id": "130511", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [89c196d407d96d587e0c7883d6670e6523ff52c3])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/89c196d407d9...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:54.000+0000", "updated": "2011-04-15T03:41:54.000+0000" }, { "id": "130512", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Testcase code (2 files)

\n

app.js:

\n
\n\nvar win = Ti.UI.createWindow({\n    url: Ti.Filesystem.resourcesDirectory + \"/test.js\"\n});\n\nwin.open();\n
\n

test.js:

\n
\n\nvar win = Ti.UI.currentWindow;\nwin.backgroundColor = 'blue';\n
\n

tiapp.xml:

\n
\n\n<ti:app>\n ...\n <property name=\"ti.android.compilejs\" type=\"bool\">true</property>\n</ti:app>\n
\n

If the test.js fails to load, you've reproduced this bug (you\nshould see an exception). If it does load, then the bug should be\nfixed.

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:55.000+0000", "updated": "2011-04-15T03:41:55.000+0000" }, { "id": "130513", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with Titanium SDK version: 1.6.1 (03/10/11 13:25\n2e8c438...) on
\nEmulator 2.1
\nSamsung Galaxy 2.2

\n

Tested with Titanium SDK version: 1.7.0 (03/11/11 12:08 86cfe14)\non
\nEmulator 2.1
\nSamsung Galaxy 2.2

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:55.000+0000", "updated": "2011-04-15T03:41:55.000+0000" }, { "id": "130514", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [727a5e1d7bc90e0c26ee528075f4648fe6fa14e7])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/727a5e1d7bc9...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:55.000+0000", "updated": "2011-04-15T03:41:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }