Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2141] Android: Ti.include with Array Is Broken

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, android_refactor, defect, regression
ReporterDon Thorp
AssigneeMarshall Culpepper
Created2011-04-15T03:11:43.000+0000
Updated2011-04-17T01:58:13.000+0000

Description

Ti.include([myfile.js]);

Doesn't handle the array type.

10-20 23:42:04.380: ERROR/KrollContext(419): Caused by: java.io.FileNotFoundException: Resources/[Ljava.lang.Object;@45020db8
10-20 23:42:04.380: ERROR/KrollContext(419):     at android.content.res.AssetManager.openAsset(Native Method)
10-20 23:42:04.380: ERROR/KrollContext(419):     at android.content.res.AssetManager.open(AssetManager.java:313)
10-20 23:42:04.380: ERROR/KrollContext(419):     at android.content.res.AssetManager.open(AssetManager.java:287)
10-20 23:42:04.380: ERROR/KrollContext(419):     at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:78)
10-20 23:42:04.380: ERROR/KrollContext(419):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:191)
10-20 23:42:04.380: ERROR/KrollContext(419):     ... 21 more

Comments

  1. Marshall Culpepper 2011-04-15

    (from [617d9252488d3b32ba6c7f2eb155ff499738a9bb]) factored out common logic from the ProxyBinding template into a new KrollBindingUtils, added metadata about method arguments to KrollInvocation, fixed failing tests in the Platform>Properties KS test and made varargs detection smarter [#2141 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/617d9252488d3b32ba6c7f2eb155ff499738a9bb"> http://github.com/appcelerator/titanium_mobile/commit/617d9252488d3...

  2. Thomas Huelbert 2011-04-15

    1.5.0.add5e1 G2 (2.2.) sim 1.6

JSON Source