Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.1Release
-
Fix Version/s: 2.5.2.Release
-
Component/s: Compiler Integration
-
Labels:None
-
Number of attachments :
Description
Inner classes compiled in groovy cause compile errors in java in eclipse. The errors go away when doing a full project clean but come right back as soon as the java file that is referencing the inner class is changed (rebuilt). This basically makes it impossible to use inner classes in joint java/groovy projects ![]()
See the following example:
//groovy code class Outer { static class Inner {} }
//java code public class Client { { new Outer.Inner(); } }
As I said if I do a project clean everything compiles. As soon as I edit and save Client.java eclipse gives me the following error:
Outer.Inner cannot be resolved to a type Client.java /GroovyTest/src/main/java line 3 Java Problem
IntelliJ IDEA has the same problem. See http://youtrack.jetbrains.net/issue/IDEA-50708