Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
-
Maven 3 with groovy-eclipse-compiler 2.8.0-01
OpenJDK 1.7.0_51
Description
@TypeChecked class Issue1 { public void issue(){ Function<String,String> function = new Function<String,String>() { @Override String apply(String input) { return "ok" } } } }
Compiler fails with the following error:
TypeChecker/src/main/java/org/issues/Issue1.groovy: 14 Groovy:[Static type checking] - Cannot use diamond <> with anonymous inner classes
See attachment (org.issues.Issue1)