groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-5318) generic types in fully-qualified class names parsing error
Date Tue, 02 May 2017 02:03:11 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King closed GROOVY-5318.
-----------------------------

> generic types in fully-qualified class names parsing error
> ----------------------------------------------------------
>
>                 Key: GROOVY-5318
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5318
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.8.6
>         Environment: Groovy 1.8.6 on Java 7
>            Reporter: Gavin Grover
>            Assignee: Daniel Sun
>            Priority: Minor
>             Fix For: 2.5.0-alpha-1
>
>
> The following code compiles and runs in Groovy 1.8.6...
> {code}
> def a= new java.util<Integer>.ArrayList<ArrayList<Integer>>()
> {code}
> The parser allows a generic type after each name in the fully-qualified class name. The
generic type should only be after the final name.
> The relevant part of the Antlr parser that needs fixing is:
> {code}
> typeParameters: LT typeParameter (COMMA typeParameter)* (typeArgumentsOrParametersEnd)?
> typeParameter: IDENT (typeParameterBounds)?
> typeParameterBounds: "extends" classOrInterfaceType (BAND! classOrInterfaceType)*
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message