Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.7, 2.0.1
-
Tested with Windows XP, Intellij IDEA 11.1.3 with embedded Ant (1.8.2), JDK 1.6.0_31
Description
Unzip the attached project and run the "compile" ant target. The following error is given:
Compile error during compilation with javac.
C:\DOCUME~1\bborcha\LOCALS~1\Temp\groovy-generated-3979570706073693155-java-source\test\MyGroovyClass.java:18: incompatible types
found : java.lang.String
required: T
public static <T extends java.lang.String> T getLast(java.util.List<T> list)
This error did not occur on groovy 1.8.6 or earlier versions and is preventing us from upgrading.