diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg index 41afc6a9c..498cebd94 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg @@ -647,8 +647,9 @@ setState(); if ( \<= 0 || !() ) { = (Token)}>_errHandler.recoverInline(this); +} else { + consume(); } -consume(); >> Wildcard(w) ::= <<