Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6585] Android: Modules: V8 Cannot find symbol for mixed case module bootstrap class

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-13T19:38:11.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsbranch-v8, verified-1.8.0.1
ReporterJeff English
AssigneeBill Dawson
Created2011-12-12T16:13:02.000+0000
Updated2012-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.

Comments

  1. Natalie Huynh 2011-12-19

    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
  2. Wilson Luu 2012-01-11

    Closing bug. Already verified fix on 1.8.0.1

JSON Source