[
https://issues.apache.org/jira/browse/GROOVY-4757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun resolved GROOVY-4757.
--------------------------------
Resolution: Fixed
Fix Version/s: (was: 4.0)
3.0
Fixed in the parrot branch
> Can't compile method with generic signatures and default visibiliy access
> -------------------------------------------------------------------------
>
> Key: GROOVY-4757
> URL: https://issues.apache.org/jira/browse/GROOVY-4757
> Project: Groovy
> Issue Type: Bug
> Components: parser-antlr
> Affects Versions: 1.7.10
> Reporter: Andres Almiray
> Assignee: Daniel Sun
> Fix For: 3.0
>
>
> The following script results in a compilation error
> {code}
> class Foo {
> <T extends Object> void foo(T t) {}
> }
> f = new Foo()
> // compiler output
> 1 compilation error:
> unexpected token: < at line: 2, column: 5
> {code}
> Adding a visibility accessor makes it work
> {code}
> class Foo {
> public <T extends Object> void foo(T t) {}
> }
> f = new Foo()
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)