[TIMOB-8308] Android: Javascript array [] seems to have some inconsistence behavior compared to iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-16T14:45:40.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 1.8.2 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | Android |
Labels | SupportTeam, core, parity, qe-port |
Reporter | Junaid Younus |
Assignee | Max Stepanov |
Created | 2012-03-26T11:40:01.000+0000 |
Updated | 2012-08-31T05:33:08.000+0000 |
Description
*Code*
Attached with this ticket.
*Expected behavior*
When you tap on the button, DDMS should show the following in the output:
[INFO] print_object > [object Object]
[INFO] object data: [object Object]
[INFO] object data.screen_name: bhushan,bhaskar,deore
[INFO] object data.screen_name[0]: bhushan
*Actual behavior*
What it actually prints out is the following:
INFO/TiAPI(4756): print_object > {screen_name=[Ljava.lang.Object;@40576ad0, idea_title=[Ljava.lang.Object;@40576b18}
INFO/TiAPI(4756): object data: [object Object]
INFO/TiAPI(4756): object data.screen_name: undefined
*Notes*
-As you can see, it doesn't even print out 'object data.screen_name[0]', since the array itself seems to be 'undefined'.
-The expected behavior is what I get from the iOS simulator's output.
-Only tested on the iOS simulator and HTC Sensation 4G running 2.3.x.
-Marked as a parity issue, not sure if this is correct, please edit the ticket as appropriate.
-HD ticket: http://support-admin.appcelerator.com/display/APP-927227
Attachments
File | Date | Size |
---|---|---|
APP-927227.zip | 2012-03-26T11:40:01.000+0000 | 2323151 |
Fixed with SDK version:2.1.0.GA and 2.1.1.GA Don't have expected message with SDK version: 2.2.0.v20120816015712 Tested on: Titanium Studio, build: 2.1.1.201207271312 SDK versions: 2.1.0.GA, 2.1.1.GA and 2.2.0.v20120816015712 Devices: Samsung Galaxy Nexus (4.0.4) iPad3 4G (5.1.1) iPhone4s (5.0.1)
I don't see how the ticket and problem description are related. PR is 100% java file change.
Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120830182512 Tested with Titanium Studio: 2.1.2.201208301612 Device - Samsung GALAXY Note Android 2.3.6 Machine OS - MAC 10.8