[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 Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-19T00:13:22.000+0000 |
Affected Version/s | Release 1.7.0, Sprint 2011-19 |
Fix Version/s | Release 1.7.0, Sprint 2011-20, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Opie Cyrus |
Assignee | Bill Dawson |
Created | 2011-05-11T16:31:13.000+0000 |
Updated | 2011-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.
Tested with Titanium SDK version: 1.7.0 (05/17/11 15:00 631e153) on Emulator 2.1 Nexus S 2.3.2
Still encounter the error when doing distribution error: [ERROR] js: File "win-test" is not a valid class file name.
Retested with Titanium SDK version: 1.7.0 (05/18/11 17:17 187fe3f), no error