Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362178 - java.lang is cut off in generated java file
Summary: java.lang is cut off in generated java file
Status: VERIFIED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 07:14 EDT by Oliver L CLA
Modified: 2011-10-30 14:20 EDT (History)
1 user (show)

See Also:
jan: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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