Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.3
-
None
-
Windows 7, Java 1.6, Groovy 2.1.3
Description
The following gives a compiler error:
import javax.xml.ws.Holder @groovy.transform.CompileStatic class MyClass { public static void main(String[] args) { Holder<Integer> holder = new Holder<Integer>() holder.value = 5 println holder.value > 4 } }
[Static type checking] - Cannot find matching method java.lang.Object#compareTo(int). Please check if the declared type is right and if the method exists.