Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1683] Android: 1-length arrays aren't converted from JSON correctly

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, array, defect, json
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T02:59:19.000+0000
Updated2011-04-17T01:56:52.000+0000

Description

We're calling the wrong Array constructor when there's only 1 element in the Array

Comments

  1. Marshall Culpepper 2011-04-15

    (from [8f9cd4e90d11d68fe27b56f9054dac169b6191d8]) use newArray instead of newObject for converting native arrays to JS arrays [#1683 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/8f9cd4e90d11d68fe27b56f9054dac169b6191d8"> http://github.com/appcelerator/titanium_mobile/commit/8f9cd4e90d11d...

  2. Thomas Huelbert 2011-04-15

    confirmed on simulator and device, android and iPhone

JSON Source