Project: appceleratorstudio
Issue TISTUD-761: Titanium Studio: Android reserved namespace is not resulting in a malformed app id error
When creating a new project in Titanium Studio (or editing the tiapp.xml), Application ID tokens (tok1.tok2.tok3) containing invalid java namespace identifiers do not generate an error. Steps to Reproduce: 1. Open Titanium Studio. 2. Create a new project. Make sure the project supports Android. 3. Make one of the tokens in the Application ID an invalid java identifier (see below). Expected Result: An error message should appear and the project can't be created or an error message remains (if editing tiapp.xml). Actual Result: No error message appears. The project can be created. tiapp.xml shows no errors when viewed in the editor. The project can build to iOS, but the Android build fails with an error such as: [ERROR] Error(s) compiling generated Java code [ERROR] /Users/dhyde/Documents/Titanium Studio Workspace/helloworld/build/android/gen/com/appcelerator/123/ApplicationStylesheet.java:5: ';' expected package com.appcelerator.123; ^ Note: Below is the Java documentation regarding valid identifiers. Java Documentation (excerpt follows): http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625 Excerpt: An identifier is an unlimited-length sequence of Java letters and Java digits, the first of which must be a Java letter. An identifier cannot have the same spelling (Unicode character sequence) as a keyword (§3.9), boolean literal (§3.10.3), or the null literal (§3.10.7). Keywords: abstract default if private this	boolean do implements protected throw	break double import public throws	byte else instanceof return transient	case extends int short try	catch final interface static void	char finally long strictfp volatile	class float native super while	const for new switch	continue goto package synchronized Boolean Literals: true false Null Literal: null
Story points: 5