Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2076] Android: View with size generates runtime error

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:01.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, android_refactor, error, regression, runtime
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:09:46.000+0000
Updated2011-04-17T01:58:01.000+0000

Description

g1 running 1.6 and the sim running 2.2 Ti Mobile sdk 1.5.0.02c264.

1.BaseUI>Views>View w/ size
2.tap the button

results: runtime error

E/KrollCallback( 8993): (kroll$4) [3343,38250] Error evaluating source, invocation: [callMethod UI.Button.UI.Button:event:click null], message: Wrapped java.lang.NoSuchFieldException: dynamic property "size" of proxy "UI.View" doesn't have write support (app://examples/view_with_size.js#36)
E/KrollCallback( 8993): org.mozilla.javascript.WrappedException: Wrapped java.lang.NoSuchFieldException: dynamic property "size" of proxy "UI.View" doesn't have write support (app://examples/view_with_size.js#36)
E/KrollCallback( 8993): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
E/KrollCallback( 8993): at org.appcelerator.kroll.KrollObject.put(Unknown Source)
E/KrollCallback( 8993): at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:2126)
E/KrollCallback( 8993): at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1623)
E/KrollCallback( 8993): at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1613)
E/KrollCallback( 8993): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1417)
E/KrollCallback( 8993): at script(app://examples/view_with_size.js:36)
E/KrollCallback( 8993): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollCallback( 8993): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollCallback( 8993): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollCallback( 8993): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollCallback( 8993): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
E/KrollCallback( 8993): at org.appcelerator.titanium.kroll.KrollCallback$1.run(Unknown Source)
E/KrollCallback( 8993): at android.os.Handler.handleCallback(Handler.java:587)
E/KrollCallback( 8993): at android.os.Handler.dispatchMessage(Handler.java:92)
E/KrollCallback( 8993): at android.os.Looper.loop(Looper.java:123)
E/KrollCallback( 8993): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)
E/KrollCallback( 8993): Caused by: java.lang.NoSuchFieldException: dynamic property "size" of proxy "UI.View" doesn't have write support
E/KrollCallback( 8993): at org.appcelerator.kroll.KrollProxy.setDynamicProperty(Unknown Source)
E/KrollCallback( 8993): at org.appcelerator.kroll.KrollProxy.set(Unknown Source)
E/KrollCallback( 8993): at org.appcelerator.kroll.KrollObject.put(Unknown Source)
E/KrollCallback( 8993): ... 14 more

Comments

  1. Marshall Culpepper 2011-04-15

    (from [5e5d4eadf67bb0699472404349a948383c353aba]) fall through to internal properties for bindings that only have a getter or setter [#2076 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/5e5d4eadf67bb0699472404349a948383c353aba"> http://github.com/appcelerator/titanium_mobile/commit/5e5d4eadf67bb...

  2. Thomas Huelbert 2011-04-15

    G2 2.2 mobile sdk 1.5.0.2c1cae

JSON Source