Community
Participate
Working Groups
Build Identifier: 20110609-2236 In Xtend 2.0.1.v201108151710 I have a similar error then bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=345722. When class a.Test extends class b.Test the fqn is removed in the generated java class and gives and cycle error. Maybe there is a Unit test missing for that case? ;-) Reproducible: Always Steps to Reproduce: 1. make two classes package org.eclipse.xtext.example.domainmodel.test1 class Test {} package org.eclipse.xtext.example.domainmodel.test2 class Test extends org.eclipse.xtext.example.domainmodel.test1.Test {} 2. the generated "...test2.Test.java" will look like: package org.eclipse.xtext.example.domainmodel.test2; import org.eclipse.xtext.example.domainmodel.test1.Test; @SuppressWarnings("all") public class Test extends Test { } 3. bamm... :)
I've just checked in some change to the ImportManager that should deal with this situation. Could not reproduce this any more: I now get a cyclic dependency error marker and no code is built. Please reopen if the problem remains.
Marked as fixed (see last comment)
(In reply to comment #1) > I've just checked in some change to the ImportManager that should deal with > this situation. Could not reproduce this any more: I now get a cyclic > dependency error marker and no code is built. Please reopen if the problem > remains. yes, now it works. Thanks a lot.
Closing all bugs that were set to RESOLVED before Neon.0