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
This commit is contained in:
Alexandre Petit-Bianco 1999-11-02 07:51:19 +00:00 committed by Alexandre Petit-Bianco
parent b78121f657
commit efa0a23fc2
3 changed files with 1632 additions and 1594 deletions

View File

@ -1,3 +1,9 @@
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

File diff suppressed because it is too large Load Diff

View File

@ -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);
}
;