{ "id": "62714", "key": "TIMOB-2082", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:02.000+0000", "created": "2011-04-15T03:09:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "error", "regression", "runtime" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:02.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}

g1 running 1.6 and the sim running 2.2 Ti Mobile sdk\n1.5.0.02c264

\n

1.Platform>Properties API

\n

results:
\nD/TiApplication( 8513): (kroll$4) [2,14199] delegating to\nTiStylesheet for style properties
\nD/TiAPI ( 8513): (kroll$4) [23,14222] Bool: Test Success
\nD/TiAPI ( 8513): (kroll$4) [8,14230] Double: Test Success
\nD/TiAPI ( 8513): (kroll$4) [5,14235] int: Test Success
\nD/TiAPI ( 8513): (kroll$4) [6,14241] String: Test Success
\nE/KrollMethod( 8513): (kroll$4) [7,14248] Exception calling kroll\nmethod getList
\nE/KrollMethod( 8513): java.lang.ClassCastException:\n[Ljava.lang.Object;
\nE/KrollMethod( 8513): at\norg.appcelerator.titanium.util.TiConvert.toStringArray(Unknown\nSource)
\nE/KrollMethod( 8513): at\nti.modules.titanium.app.properties.PropertiesModule.getList(Unknown\nSource)
\nE/KrollMethod( 8513): at\nti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown\nSource)
\nE/KrollMethod( 8513): at\norg.appcelerator.kroll.KrollMethod.call(Unknown Source)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
\nE/KrollMethod( 8513): at\norg.mozilla.javascript.Context.evaluateReader(Context.java:1142)
\nE/KrollMethod( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown\nSource)
\nE/KrollMethod( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown\nSource)
\nE/KrollMethod( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown\nSource)
\nE/KrollMethod( 8513): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nE/KrollMethod( 8513): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollMethod( 8513): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown\nSource)
\nE/KrollContext( 8513): (kroll$4) [32,14280] Error evaluating\nsource: Wrapped java.lang.ClassCastException: [Ljava.lang.Object;\n(app://examples/properties.js#51)
\nE/KrollContext( 8513): org.mozilla.javascript.WrappedException:\nWrapped java.lang.ClassCastException: [Ljava.lang.Object;\n(app://examples/properties.js#51)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
\nE/KrollContext( 8513): at\norg.appcelerator.kroll.KrollMethod.call(Unknown Source)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
\nE/KrollContext( 8513): at\nscript(app://examples/properties.js:51)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
\nE/KrollContext( 8513): at\norg.mozilla.javascript.Context.evaluateReader(Context.java:1142)
\nE/KrollContext( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown\nSource)
\nE/KrollContext( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown\nSource)
\nE/KrollContext( 8513): at\norg.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown\nSource)
\nE/KrollContext( 8513): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nE/KrollContext( 8513): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollContext( 8513): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown\nSource)
\nE/KrollContext( 8513): Caused by: java.lang.ClassCastException:\n[Ljava.lang.Object;
\nE/KrollContext( 8513): at\norg.appcelerator.titanium.util.TiConvert.toStringArray(Unknown\nSource)
\nE/KrollContext( 8513): at\nti.modules.titanium.app.properties.PropertiesModule.getList(Unknown\nSource)
\nE/KrollContext( 8513): at\nti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown\nSource)
\nE/KrollContext( 8513): at\norg.appcelerator.kroll.KrollMethod.call(Unknown Source)
\nE/KrollContext( 8513): ... 13 more

{html}", "attachment": [], "flagged": false, "summary": "Android: Properties test case generates a runtime error ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127438", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [da2628206c037988b45a9f2bfe11c51f97a9329f])\nget default values of boxed types, be more specific in the app\nproperties DefaultValues impl [#2082\nstate:fixed-in-qa] \nhttp://github.com/appcelerator/titanium_mobile/commit/da2628206c037...

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

G2 2.2 mobile sdk 1.5.0.2c1cae. some tests are failing, will log\na new bug for them (will wait for thursdays build first)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:09:57.000+0000", "updated": "2011-04-15T03:09:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }