{ "id": "88845", "key": "TIMOB-8308", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-16T14:45:40.000+0000", "created": "2012-03-26T11:40:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "core", "parity", "qe-port" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "17272", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "90060", "key": "TIMOB-8732", "fields": { "summary": "Android: Custom JavaScript objects sent in events to a WebView throw errors", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-31T05:33:08.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": "*Code*\r\nAttached with this ticket.\r\n\r\n*Expected behavior*\r\nWhen you tap on the button, DDMS should show the following in the output:\r\n{code}\r\n[INFO] print_object > [object Object]\r\n[INFO] object data: [object Object]\r\n[INFO] object data.screen_name: bhushan,bhaskar,deore\r\n[INFO] object data.screen_name[0]: bhushan\r\n{code}\r\n\r\n*Actual behavior*\r\nWhat it actually prints out is the following:\r\n{code}\r\nINFO/TiAPI(4756): print_object > {screen_name=[Ljava.lang.Object;@40576ad0, idea_title=[Ljava.lang.Object;@40576b18}\r\nINFO/TiAPI(4756): object data: [object Object]\r\nINFO/TiAPI(4756): object data.screen_name: undefined\r\n{code}\r\n\r\n*Notes*\r\n-As you can see, it doesn't even print out 'object data.screen_name[0]', since the array itself seems to be 'undefined'.\r\n-The expected behavior is what I get from the iOS simulator's output.\r\n-Only tested on the iOS simulator and HTC Sensation 4G running 2.3.x.\r\n-Marked as a parity issue, not sure if this is correct, please edit the ticket as appropriate.\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-927227", "attachment": [ { "id": "26600", "filename": "APP-927227.zip", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-26T11:40:01.000+0000", "size": 2323151, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Javascript array [] seems to have some inconsistence behavior compared to iOS", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK version: 1.8.0.1, 1.8.2\r\nJavascript Engine: Rhino & V8 \r\nPlatform & version: Android 2.3.x\r\nDevice Details: HTC Sensation\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 1.0.9.201202141208", "comment": { "comments": [ { "id": "214873", "author": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed with SDK version:2.1.0.GA and 2.1.1.GA\r\nDon't have expected message with SDK version: 2.2.0.v20120816015712\r\n\r\nTested on:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nSDK versions: 2.1.0.GA, 2.1.1.GA and 2.2.0.v20120816015712\r\nDevices:\r\nSamsung Galaxy Nexus (4.0.4)\r\niPad3 4G (5.1.1)\r\niPhone4s (5.0.1)\r\n\r\n\r\n", "updateAuthor": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T14:28:48.000+0000", "updated": "2012-08-16T16:43:37.000+0000" }, { "id": "214886", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't see how the ticket and problem description are related.\r\nPR is 100% java file change.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T14:45:40.000+0000", "updated": "2012-08-16T14:45:40.000+0000" }, { "id": "217141", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120830182512\r\nTested with Titanium  Studio: 2.1.2.201208301612\r\nDevice - Samsung GALAXY Note Android 2.3.6\r\nMachine OS - MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-31T05:33:08.000+0000", "updated": "2012-08-31T05:33:08.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }