Issue Details (XML | Word | Printable)

Key: GROOVY-2268
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Dirk Dinger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

"minimal" generic interface

Created: 05/Nov/07 02:29 AM   Updated: 15/Nov/07 06:13 PM
Component/s: class generator
Affects Version/s: 1.1-rc-2
Fix Version/s: 1.1-rc-3

Time Tracking:
Not Specified

File Attachments: 1. File generic-interface.groovy (0.1 kB)

Environment: Java 6

Testcase included: yes


 Description  « Hide
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."



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou added a comment - 15/Nov/07 06:13 PM
fixed