[ 
https://issues.apache.org/jira/browse/GROOVY-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837581#comment-15837581
 ] 

ASF GitHub Bot commented on GROOVY-5318:
----------------------------------------

GitHub user paulk-asert opened a pull request:

    https://github.com/apache/groovy/pull/479

    GROOVY-5318: generic types in fully-qualified class names parsing error

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy5318

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/479.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #479
    
----
commit 27ac1f90f51e5e4da8c84cb3cc30eba0be201727
Author: paulk <[email protected]>
Date:   2017-01-25T11:15:17Z

    GROOVY-5318: generic types in fully-qualified class names parsing error

----


> 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: 3.0
>
>
> 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.4#6332)

Reply via email to