Commit efa0a23f by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (method_header:): Issue error message for rule `type error'.

Mon Nov  1 23:42:00 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (method_header:): Issue error message for rule `type
 	error'.
	(synchronized:): Error report when not using synchronized.

From-SVN: r30343
parent b78121f6
Mon Nov 1 23:42:00 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (method_header:): Issue error message for rule `type
error'.
(synchronized:): Error report when not using synchronized.
Mon Nov 1 01:32:48 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (resolve_qualified_expression_name): Prevent `this' from
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -890,7 +890,10 @@ method_header:
| modifiers VOID_TK method_declarator throws
{ $$ = method_header ($1, void_type_node, $3, $4); }
| type error
{RECOVER;}
{
yyerror ("Invalid method declaration, method name required");
RECOVER;
}
| modifiers type error
{RECOVER;}
| VOID_TK error
......@@ -1669,10 +1672,14 @@ synchronized_statement:
;
synchronized:
MODIFIER_TK
modifiers
{
if ((1 << $1) != ACC_SYNCHRONIZED)
fatal ("synchronized was '%d' - yyparse", (1 << $1));
check_modifiers ("Illegal modifier `%s'. Only "
"`synchronized' was expected here",
$1, ACC_SYNCHRONIZED);
if ($1 != ACC_SYNCHRONIZED)
MODIFIER_WFL (SYNCHRONIZED_TK) =
build_wfl_node (NULL_TREE);
}
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment