From 29596d42827f1cdc833bbbc762a7202b1d551d06 Mon Sep 17 00:00:00 2001 From: Johannes Mey <johannes.mey@tu-dresden.de> Date: Sun, 20 Feb 2022 16:55:24 +0100 Subject: [PATCH] fix bug with multi-type-catch fixes #21 --- src/main/grammar/Aspect.bnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/grammar/Aspect.bnf b/src/main/grammar/Aspect.bnf index e37e1f1..2f032fe 100644 --- a/src/main/grammar/Aspect.bnf +++ b/src/main/grammar/Aspect.bnf @@ -361,7 +361,7 @@ throw_statement ::= THROW expression SEMICOLON synchronized_statement ::= SYNCHRONIZED LPAREN expression RPAREN block -try_statement ::= TRY ( LPAREN local_variable_declaration ( SEMICOLON local_variable_declaration )* SEMICOLON? RPAREN )? block ( CATCH LPAREN FINAL? type ( BIT_OR FINAL type )* variable_declarator_id RPAREN block )* ( FINALLY block )? +try_statement ::= TRY ( LPAREN local_variable_declaration ( SEMICOLON local_variable_declaration )* SEMICOLON? RPAREN )? block ( CATCH LPAREN FINAL? type ( BIT_OR FINAL? type )* variable_declarator_id RPAREN block )* ( FINALLY block )? // TODO maybe change order! annotation ::= ( normal_annotation | single_member_annotation | marker_annotation ) -- GitLab