{ "id": "62632", "key": "TIMOB-2000", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:47.000+0000", "created": "2011-04-15T03:07:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:47.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}

If you run this app.js:

\n
\n/*global Ti, Titanium, alert, JSON */\nTitanium.UI.setBackgroundColor('#000');\nTi.API.info('Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = ' + Ti.UI.Android.SOFT_INPUT_ADJUST_PAN);\nTi.API.info('Ti.Android.ACTION_ALL_APPS = ' + Ti.Android.ACTION_ALL_APPS);\n
\n

The result should be:

\n
\nI/TiAPI   ( 1127): (kroll$1) [1,147] Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = 32\nI/TiAPI   ( 1127): (kroll$1) [0,169] Ti.Android.ACTION_ALL_APPS = android.intent.action.ALL_APPS\n
\n

But the actual result is:

\n
\nI/TiAPI   ( 1127): (kroll$1) [1,147] Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = 32\nI/TiAPI   ( 1127): (kroll$1) [0,169] Ti.Android.ACTION_ALL_APPS = null\n
\n

The second one fails because KrollObject.get() grabs the cached\nmodule named Android, which comes from Ti.UI.Android since it was\ncalled first.

{html}", "attachment": [], "flagged": false, "summary": "Android: Module name collision between Ti.UI.Android and Ti.Android", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "127229", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [3f1d49ee52fb480288b9ef8ddedbed18b94a4f65])\n[#2000 state:fixed-in-qa] Caching of modules now\nuses their full qualified class names as keys to avoid collisions\nbetween Ti.Android and Ti.UI.Android \nhttp://github.com/appcelerator/titanium_mobile/commit/3f1d49ee52fb4...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:07:46.000+0000", "updated": "2011-04-15T03:07:46.000+0000" }, { "id": "127230", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Bill, I am seeing :

\n

I/TiAPI ( 299): (kroll$3) [99,29737]\nTi.UI.Android.SOFT_INPUT_ADJUST_PAN = 32
\nI/TiAPI ( 299): (kroll$3) [2,29739] Ti.Android.ACTION_ALL_APPS =\nundefined

\n

in Titanium SDK version: 1.5.0d02c264

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:07:47.000+0000", "updated": "2011-04-15T03:07:47.000+0000" }, { "id": "127231", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Adding Don's comment from the duplicate #2142:
\nTi.UI.Android and Ti.Android are not detected as separate\nnamespaces. If both modules are included in boot, and Ti.UI.Android\nis added last, calling Ti.Android.createActivity throws an\nexception because it's looking in the Ti.UI.Android module

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:07:47.000+0000", "updated": "2011-04-15T03:07:47.000+0000" }, { "id": "127232", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [b42c84f0441aca59872f3c2bec07abb02afb2965])\n[#2000 state:fixed-in-qa] third-level modules\nshould not be included in Application.java (and thus not in\napp_modules collection in android.py). They are bound lazily at\nruntime. \nhttps://github.com/appcelerator/titanium_mobile/commit/b42c84f0441a...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:07:47.000+0000", "updated": "2011-04-15T03:07:47.000+0000" }, { "id": "127233", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [98da99d5801e426ff5cc63555b6a398ec662a5eb])\n[#2000 state:fixed-in-qa] add unit test \nhttps://github.com/appcelerator/titanium_mobile/commit/98da99d5801e...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:07:48.000+0000", "updated": "2011-04-15T03:07:48.000+0000" }, { "id": "127234", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8), drillbit,\nAndroid 1.6/2.1

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:07:48.000+0000", "updated": "2011-04-15T03:07:48.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }