* parse.y (method_header): Give error message in all cases.
Fixes PR java/6865.
From-SVN: r54504
+2002-06-09 Tom Tromey <tromey@redhat.com>
+
+ * parse.y (method_header): Give error message in all cases.
+ Fixes PR java/6865.
+
2002-06-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Don't use RTL inlining. Fix for PR java/6820.
RECOVER;
}
| modifiers type error
- {RECOVER;}
+ {
+ yyerror ("Identifier expected");
+ RECOVER;
+ }
| VOID_TK error
- {yyerror ("Identifier expected"); RECOVER;}
+ {
+ yyerror ("Identifier expected");
+ RECOVER;
+ }
| modifiers VOID_TK error
- {yyerror ("Identifier expected"); RECOVER;}
+ {
+ yyerror ("Identifier expected");
+ RECOVER;
+ }
| modifiers error
{
yyerror ("Invalid method declaration, return type required");