[java] Parsing Problem with Annotation for Array Member Types #417

This commit is contained in:
Git Guru
2017-05-30 10:52:09 +02:00
parent 68ab7048cb
commit 7a4766e8a6
2 changed files with 6 additions and 1 deletions

View File

@ -1566,7 +1566,7 @@ void ReferenceType():
{ {
PrimitiveType() ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+ PrimitiveType() ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
| |
( ClassOrInterfaceType() ) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })* ( ClassOrInterfaceType() (Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
} }
void ClassOrInterfaceType(): void ClassOrInterfaceType():

View File

@ -169,6 +169,11 @@ public class ParserCornerCases18 {
return null; return null;
} }
public Object @Nullable [] testAnnotationsToArrayElements() {
return null;
}
/** /**
* Explicit receiver Parameters * Explicit receiver Parameters
* see: http://blog.joda.org/2015/12/explicit-receiver-parameters.html * see: http://blog.joda.org/2015/12/explicit-receiver-parameters.html