groovy

"minimal" generic interface

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    1

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."

Activity

Hide
blackdrag blackdrag added a comment -

fixed

Show
blackdrag blackdrag added a comment - fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: