Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4043] javascript files that contain a dash do not get compiled correctly when distributed and result in a error when loading within app.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-05-19T00:13:22.000+0000
Affected Version/sRelease 1.7.0, Sprint 2011-19
Fix Version/sRelease 1.7.0, Sprint 2011-20, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterOpie Cyrus
AssigneeBill Dawson
Created2011-05-11T16:31:13.000+0000
Updated2011-05-19T17:16:23.000+0000

Description

Reported by Jonathon Alter. When loading window from separate js file (IE: win-test.js) error is encountered due to not being able to find associated compiled JS. If dash is replace with underscore, error goes away. TRACE: "D/KrollContext( 6199): (kroll$2: app://win-test.js) [1688,3277] Running pre-compiled script: win-test.js E/KrollContext( 6199): (kroll$2: app://win-test.js) [1,3278] Couldn't find pre-compiled class for script: win-test.js E/KrollContext( 6199): java.lang.ClassNotFoundException: com.appcelerator.pushtest.js.win-test E/KrollContext( 6199): at java.lang.Class.classForName(Native Method) E/KrollContext( 6199): at java.lang.Class.forName(Class.java:234) E/KrollContext( 6199): at java.lang.Class.forName(Class.java:181) E/KrollContext( 6199): at org.appcelerator.titanium.TiScriptRunner.runScript(TiScriptRunner.java:91) E/KrollContext( 6199): at " Not sure exactly who this should belong to. Assigning to Don for reallocation.

Comments

  1. Natalie Huynh 2011-05-18

    Tested with Titanium SDK version: 1.7.0 (05/17/11 15:00 631e153) on Emulator 2.1 Nexus S 2.3.2
  2. Natalie Huynh 2011-05-18

    Still encounter the error when doing distribution error: [ERROR] js: File "win-test" is not a valid class file name.
  3. Natalie Huynh 2011-05-18

    Retested with Titanium SDK version: 1.7.0 (05/18/11 17:17 187fe3f), no error

JSON Source