Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-rc-2
-
Fix Version/s: 1.1-rc-3
-
Component/s: class generator
-
Labels:None
-
Environment:Java 6
-
Testcase included:yes
-
Number of attachments :
Description
Tried to compile the following within the groovy console
public interface SomeInterface<T> {
List someMethod(T entity);
}
the following error comes up:
"org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1: 1: Unexpected node type: TYPE_PARAMETERS found when expecting type: OBJBLOCK at line: 1 column: 31. File: Script1 @ line 1, column 31."
If you compile the interface with java and try to implement the interface from a groovy class, another error comes up:
"Can't have an abstract method in a non-abstract class."
fixed