[TIMOB-2082] Android: Properties test case generates a runtime error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, android_refactor, error, regression, runtime |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:09:56.000+0000 |
Updated | 2011-04-17T01:58:02.000+0000 |
Description
g1 running 1.6 and the sim running 2.2 Ti Mobile sdk 1.5.0.02c264
1.Platform>Properties API
results:
D/TiApplication( 8513): (kroll$4) [2,14199] delegating to
TiStylesheet for style properties
D/TiAPI ( 8513): (kroll$4) [23,14222] Bool: Test Success
D/TiAPI ( 8513): (kroll$4) [8,14230] Double: Test Success
D/TiAPI ( 8513): (kroll$4) [5,14235] int: Test Success
D/TiAPI ( 8513): (kroll$4) [6,14241] String: Test Success
E/KrollMethod( 8513): (kroll$4) [7,14248] Exception calling kroll
method getList
E/KrollMethod( 8513): java.lang.ClassCastException:
[Ljava.lang.Object;
E/KrollMethod( 8513): at
org.appcelerator.titanium.util.TiConvert.toStringArray(Unknown
Source)
E/KrollMethod( 8513): at
ti.modules.titanium.app.properties.PropertiesModule.getList(Unknown
Source)
E/KrollMethod( 8513): at
ti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown
Source)
E/KrollMethod( 8513): at
org.appcelerator.kroll.KrollMethod.call(Unknown Source)
E/KrollMethod( 8513): at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
E/KrollMethod( 8513): at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollMethod( 8513): at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollMethod( 8513): at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollMethod( 8513): at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollMethod( 8513): at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollMethod( 8513): at
org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollMethod( 8513): at
org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
Source)
E/KrollMethod( 8513): at
org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
Source)
E/KrollMethod( 8513): at
org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
Source)
E/KrollMethod( 8513): at
android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollMethod( 8513): at
android.os.Looper.loop(Looper.java:123)
E/KrollMethod( 8513): at
org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
Source)
E/KrollContext( 8513): (kroll$4) [32,14280] Error evaluating
source: Wrapped java.lang.ClassCastException: [Ljava.lang.Object;
(app://examples/properties.js#51)
E/KrollContext( 8513): org.mozilla.javascript.WrappedException:
Wrapped java.lang.ClassCastException: [Ljava.lang.Object;
(app://examples/properties.js#51)
E/KrollContext( 8513): at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
E/KrollContext( 8513): at
org.appcelerator.kroll.KrollMethod.call(Unknown Source)
E/KrollContext( 8513): at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
E/KrollContext( 8513): at
script(app://examples/properties.js:51)
E/KrollContext( 8513): at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollContext( 8513): at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollContext( 8513): at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollContext( 8513): at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollContext( 8513): at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollContext( 8513): at
org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollContext( 8513): at
org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
Source)
E/KrollContext( 8513): at
org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
Source)
E/KrollContext( 8513): at
org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
Source)
E/KrollContext( 8513): at
android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollContext( 8513): at
android.os.Looper.loop(Looper.java:123)
E/KrollContext( 8513): at
org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
Source)
E/KrollContext( 8513): Caused by: java.lang.ClassCastException:
[Ljava.lang.Object;
E/KrollContext( 8513): at
org.appcelerator.titanium.util.TiConvert.toStringArray(Unknown
Source)
E/KrollContext( 8513): at
ti.modules.titanium.app.properties.PropertiesModule.getList(Unknown
Source)
E/KrollContext( 8513): at
ti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown
Source)
E/KrollContext( 8513): at
org.appcelerator.kroll.KrollMethod.call(Unknown Source)
E/KrollContext( 8513): ... 13 more
(from [da2628206c037988b45a9f2bfe11c51f97a9329f]) get default values of boxed types, be more specific in the app properties DefaultValues impl [#2082 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/da2628206c037988b45a9f2bfe11c51f97a9329f"> http://github.com/appcelerator/titanium_mobile/commit/da2628206c037...
G2 2.2 mobile sdk 1.5.0.2c1cae. some tests are failing, will log a new bug for them (will wait for thursdays build first)