From 938a39c05781fe821814c760220088ad8779464e Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 24 May 2014 13:15:01 -0500 Subject: [PATCH] Qualify references to the ATN class to avoid symbol conflicts with tokens named ATN (fixes #561) --- .../org/antlr/v4/tool/templates/codegen/Java/Java.stg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();"