[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(); })+
|
( ClassOrInterfaceType() ) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
( ClassOrInterfaceType() (Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
}
void ClassOrInterfaceType():

View File

@ -168,6 +168,11 @@ public class ParserCornerCases18 {
public List<@AnnotatedUsage ?> testWildCardWithAnnotation() {
return null;
}
public Object @Nullable [] testAnnotationsToArrayElements() {
return null;
}
/**
* Explicit receiver Parameters