Community
Participate
Working Groups
Build Identifier: 20110526-1053 Using an xtext grammar containing an element named Boolean in an xtend2 generator breaks the generated java code. The user defined type "Boolean" is imported in the java source file. So the java.lang.Boolean is covert. But lot of generated code fragements use java.lang.Boolean without the full qualified name. Thus the code is erroneous at multiple places. Reproducible: Always Steps to Reproduce: 1. Create an xtext grammar with an element named "Boolean" 2. Create an xtend2 generator script with a function that returns an boolean value 3.
org.eclipse.emf.codegen.util.CodeGenUtil.isJavaDefaultType(String) can be used to check for collisions with built-in identifiers of Java.
Should be fixed in HEAD with latest changes to ImportManager. Please verify.
Closing all bugs that were set to RESOLVED before Neon.0