test case for

private byte @Nullable [] getBytes(){
		return null;
	}
This commit is contained in:
snap252
2017-05-30 12:20:26 +02:00
parent 7a4766e8a6
commit d314a2c301
2 changed files with 9 additions and 5 deletions

View File

@ -1435,8 +1435,8 @@ void ClassOrInterfaceBodyDeclaration():
| LOOKAHEAD(3) EnumDeclaration(modifiers)
| LOOKAHEAD( [ TypeParameters() ] <IDENTIFIER> "(" ) ConstructorDeclaration(modifiers)
| LOOKAHEAD( Type() <IDENTIFIER> ( "[" "]" )* ( "," | "=" | ";" ) ) FieldDeclaration(modifiers)
| MethodDeclaration(modifiers)
| AnnotationTypeDeclaration(modifiers)
| LOOKAHEAD(2) MethodDeclaration(modifiers)
| LOOKAHEAD(2) AnnotationTypeDeclaration(modifiers)
)
|
";"
@ -1488,7 +1488,7 @@ void MethodDeclaration(int modifiers) :
{jjtThis.setModifiers(modifiers);}
{
[ TypeParameters() ]
ResultType() MethodDeclarator() [ "throws" NameList() ]
[(Annotation() {checkForBadTypeAnnotations();})+] ResultType() MethodDeclarator() [ "throws" NameList() ]
( Block() | ";" )
}
@ -1564,9 +1564,9 @@ void Type():
void ReferenceType():
{}
{
PrimitiveType() ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
PrimitiveType() ((Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })+
|
( ClassOrInterfaceType() (Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
( ClassOrInterfaceType()) ((Annotation() {checkForBadTypeAnnotations();})*) ( LOOKAHEAD(2) "[" "]" { jjtThis.bumpArrayDepth(); })*
}
void ClassOrInterfaceType():

View File

@ -172,6 +172,10 @@ public class ParserCornerCases18 {
public Object @Nullable [] testAnnotationsToArrayElements() {
return null;
}
private byte @Nullable [] getBytes(){
return null;
}
/**