Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7.10
-
Fix Version/s: 4.0
-
Component/s: parser-antlr
-
Labels:None
-
Number of attachments :
Description
The following script results in a compilation error
class Foo {
<T extends Object> void foo(T t) {}
}
f = new Foo()
// compiler output
1 compilation error:
unexpected token: < at line: 2, column: 5
Adding a visibility accessor makes it work
class Foo {
public <T extends Object> void foo(T t) {}
}
f = new Foo()
Issue Links
- is duplicated by
-
GROOVY-4901
Compilatin exception for a method with generics and default access modifier
-
Is this the same as
GROOVY-4901?