[TIMOB-6585] Android: Modules: V8 Cannot find symbol for mixed case module bootstrap class
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-13T19:38:11.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
Components | Android |
Labels | branch-v8, verified-1.8.0.1 |
Reporter | Jeff English |
Assignee | Bill Dawson |
Created | 2011-12-12T16:13:02.000+0000 |
Updated | 2012-01-11T15:28:30.000+0000 |
Description
Unable to build an application that uses the Urban Airship module. Receive the following build error when attempting to build an application that uses the UA module:
[ERROR] Error(s) compiling generated Java code
[ERROR] /Users/jenglish/Documents/Titanium Studio Workspace4/Urban Airship Test/build/android/gen/com/appcelerator/urbanairshiptest/UrbanAirshipTestApplication.java:40: cannot find symbol
The problem is that the generated application java file references the bootstrap class with uppercase first letter and lowercase on everything else
Generated application.java file snippet
public final class UrbanAirshipTestApplication extends TiApplication
{
private static final String TAG = "UrbanAirshipTestApplication";
@Override
public void onCreate()
{
super.onCreate();
appInfo = new UrbanAirshipTestAppInfo(this);
postAppInfo();
V8Runtime runtime = new V8Runtime();
runtime.addExternalModule("ti.urbanairship", ti.urbanairship.UrbanairshipBootstrap.class);
It is referencing the bootstrap class as "ti.urbanairship.UrbanairshipBootstrap.class". Notice in the generated module bootstrap.java file that the class is "ti.urbanairship.UrbanAirshipBootstrap" (with mixed case).
public class UrbanAirshipBootstrap implements KrollExternalModule
{
public void bootstrap()
{
nativeBootstrap();
}
private native void nativeBootstrap();
}
While we could workaround this for the UA module I am sure that other modules out in the marketplace are going to experience the same issue.
Tested with 1.8.0.1.RC3 with v8/rhino on Nexus One (2.2) verified push works. Waiting to verify on 1.9.0
Closing bug. Already verified fix on 1.8.0.1