Details
Description
The following code compiles and runs in Groovy 1.8.6...
def a= new java.util<Integer>.ArrayList<ArrayList<Integer>>()
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:
typeParameters: LT typeParameter (COMMA typeParameter)* (typeArgumentsOrParametersEnd)?
typeParameter: IDENT (typeParameterBounds)?
typeParameterBounds: "extends" classOrInterfaceType (BAND! classOrInterfaceType)*
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.x [ 17013 ] | |
| Fix Version/s | 4.0 [ 18928 ] | |
| Assignee | blackdrag blackdrag [ blackdrag ] |