Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362178

Summary: java.lang is cut off in generated java file
Product: [Modeling] TMF Reporter: Oliver L <oliver.libutzki>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan
Version: 2.0.1Flags: jan: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Oliver L CLA 2011-10-27 07:14:33 EDT
Build Identifier: 20110615-0604 ; Xtext 2.0.1.v201108020636

I use "org.foo.Class" and "java.lang.Class" in my Xtend (2.0.1) file.

I specified both classes by their full qualified name. In the generated java file "org.foo.Class" is imported.

Unfortunately the java.lang prefix has been removed and my "java.lang.Class" is identified as "org.foo.Class" by the java compiler.

Reproducible: Always

Steps to Reproduce:
1. Create an xtend File
2. Use a class of the java.lang package and any other class with the same name
3. Let the Xtext builder build java files
Comment 1 Jan Koehnlein CLA 2011-10-27 09:14:50 EDT
Fied in HEAD. Please verify.
Comment 2 Oliver L CLA 2011-10-30 14:20:06 EDT
Verified