Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-959] Primitive array types don't make it back to JS

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, defect, kroll, primitive
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:40:17.000+0000
Updated2011-04-17T01:54:48.000+0000

Description

In Android, if we have a primitive array type (i.e. a double array) in a TiDict, when the value is retrieved back from JS, the "fromNative" logic misses it since it is a primitive array, (which isn't autoboxed).

Comments

  1. Marshall Culpepper 2011-04-15

    (from [62b9df4d7c273e5e167310d5a71a79ddb3ac8ee5]) support primitive array types that make their way into the object graph [#959 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/62b9df4d7c273e5e167310d5a71a79ddb3ac8ee5"> http://github.com/appcelerator/titanium_mobile/commit/62b9df4d7c273...

  2. Marshall Culpepper 2011-04-15

    (from [a4639c2e31b2fa1f263f27053e909a858b01b41c]) use the Array class to abstract away primtive vs. Object array types [#959 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/a4639c2e31b2fa1f263f27053e909a858b01b41c"> http://github.com/appcelerator/titanium_mobile/commit/a4639c2e31b2f...

JSON Source