[java] Parsing Problem with Annotation for Array Member Types #417
This commit is contained in:
@ -1566,7 +1566,7 @@ void ReferenceType():
|
||||
{
|
||||
PrimitiveType() ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
|
||||
|
|
||||
( ClassOrInterfaceType() ) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
|
||||
( ClassOrInterfaceType() (Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
|
||||
}
|
||||
|
||||
void ClassOrInterfaceType():
|
||||
|
@ -168,6 +168,11 @@ public class ParserCornerCases18 {
|
||||
public List<@AnnotatedUsage ?> testWildCardWithAnnotation() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object @Nullable [] testAnnotationsToArrayElements() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Explicit receiver Parameters
|
||||
|
Reference in New Issue
Block a user