Description
Repro:
Compile
interface Foo { public <N extends Number> void foo() }
Result:
unexpected token: public @ line 2, column 5. public <N extends Number> void foo() ^
Making Foo an abstract class avoids the problem:
abstract class Foo { public abstract <N extends Number> void foo() }
Attachments
Issue Links
- is depended upon by
-
GROOVY-4908 Improved compiler checking/error messages required when checking interfaces with generics
- Open