Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.6
-
None
-
Groovy 1.8.6 on Java 7
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)*
Attachments
Issue Links
- links to