Community
Participate
Working Groups
Build Identifier: [Xtend] Java/Xtend class name clash Assume we have Java Class A: package x.y.z; class A { } and Xtend class A: package x.y; class A extends x.y.z.A { } The Xtend editors shows no errors, but the generated Java class x.y.A.java does: package x.y; import x.y.z.A; @SuppressWarnings("all") public class A extends A { } The errors are on line 2 (name conflict): import x.y.z.A; line 4 (cycle detected): public class A extends A { The Java code generated correctly should looks like this: package x.y; @SuppressWarnings("all") public class A extends x.y.z.A { } Reproducible: Always Steps to Reproduce: See Bug Details
The bug was detected with Xtext SDK 2.0.0.v201105031504.
We have to initialize the import manager with our own class name.
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0