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 26ed3f883..89c4a568e 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 @@ -534,7 +534,7 @@ StarBlock(choice, alts, sync, iteration) ::= << setState(); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,,_ctx); -while ( _alt!= && _alt!=ATN.INVALID_ALT_NUMBER ) { +while ( _alt!= && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1+1 ) { @@ -561,7 +561,7 @@ case +1: setState(); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,,_ctx); -} while ( _alt!= && _alt!=ATN.INVALID_ALT_NUMBER ); +} while ( _alt!= && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); >> Sync(s) ::= "sync();"