Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.1Release
-
Fix Version/s: 2.5.2.Release
-
Component/s: Compiler Integration
-
Labels:None
-
Number of attachments :
Description
I think I may have came across a bug. Below sample does not compile in eclipse 3.7 + groovy plugin 2.5.1 + groovy 1.7. However, it does compile outside eclipse.
class WithInnerClass {
interface InnerInterface {
void foo()
}
private final InnerInterface foo = new InnerInterface() {
void foo() {
}
}
}
The problem has an easy workaround - make the inner class a top-level one. Hopefully, you'll find this report useful ![]()
Thanks a bunch for the plugin!!!
Cheers!
Inside of Eclipse, I get a compile error when using the 1.7 compiler, but not when using the 1.8 compiler. I get the same behavior on the command line. Are you using groovy 1.8 on the command line, but 1.7 inside of Eclipse by any chance?