Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeGenerator.java:119: error: reference to StringTemplate is ambiguous #223

Open
vaukai opened this issue Jan 7, 2024 · 0 comments
Open

Comments

@vaukai
Copy link

vaukai commented Jan 7, 2024

On Gentoo we get the following error on compiling antlr-3.2 with jdk:21.
Downstream bug report is https://bugs.gentoo.org/919684

�[32m * �[39;49;00mPackage:    dev-java/antlr-3.2-r1:3
�[32m * �[39;49;00mRepository: gentoo
�[32m * �[39;49;00mMaintainer: java@gentoo.org
�[32m * �[39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux
�[32m * �[39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-pkg-2.eclass
debug: inherit: java-pkg-2 -> /var/db/repos/gentoo/eclass/java-pkg-2.eclass
debug: *** Multiple Inheritance (Level: 2)
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: inherit: java-utils-2 -> /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: EXPORT_FUNCTIONS: pkg_setup -> java-pkg-2_pkg_setup
debug: EXPORT_FUNCTIONS: src_prepare -> java-pkg-2_src_prepare
debug: EXPORT_FUNCTIONS: src_compile -> java-pkg-2_src_compile
debug: EXPORT_FUNCTIONS: pkg_preinst -> java-pkg-2_pkg_preinst
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-pkg-simple.eclass
debug: inherit: java-pkg-simple -> /var/db/repos/gentoo/eclass/java-pkg-simple.eclass
debug: *** Multiple Inheritance (Level: 2)
debug:   eclass exists: /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: inherit: java-utils-2 -> /var/db/repos/gentoo/eclass/java-utils-2.eclass
debug: EXPORT_FUNCTIONS: src_compile -> java-pkg-simple_src_compile
debug: EXPORT_FUNCTIONS: src_install -> java-pkg-simple_src_install
debug: EXPORT_FUNCTIONS: src_test -> java-pkg-simple_src_test
debug: java-pkg_init: entering function, parameters: 
debug: java-pkg_switch-vm: entering function, parameters: 
debug: java-pkg_needs-vm: entering function, parameters: 
debug: depend-java-query:  NV_DEPEND:	>=dev-java/antlr-2.7.7-r7:0
	dev-java/stringtemplate:0
	>=virtual/jdk-1.8:*
	test? ( dev-java/junit:4 ) >=dev-java/java-config-2.2.0-r3
debug: Using: openjdk-21
debug: java-pkg_setup-vm: entering function, parameters: 
debug: java-pkg_get-vm-vendor: entering function, parameters: 
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
debug: java-pkg_append_: entering function, parameters: LD_LIBRARY_PATH /usr/lib64/openjdk-21/lib/:/usr/lib64/openjdk-21/lib/server/
 �[32m*�[0m Using: openjdk-21
>>> Unpacking source...
>>> Unpacking antlr-3.2.tar.gz to /var/tmp/portage/dev-java/antlr-3.2-r1/work
>>> Source unpacked in /var/tmp/portage/dev-java/antlr-3.2-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2 ...
 �[32m*�[0m Applying 3.2-test-fixes.patch ...
�[A�[152C �[34;01m[ �[32;01mok�[34;01m ]�[0m
 �[32m*�[0m Applying 3.2-java-8.patch ...
�[A�[152C �[34;01m[ �[32;01mok�[34;01m ]�[0m
debug: java-pkg_is-vm-version-ge: entering function, parameters: 1.8
debug: java-pkg_get-vm-version: entering function, parameters: 
debug: Detected a JDK(21) >= 1.8
removed 'tool/src/test/java/org/antlr/test/TestDFAConversion.java'
removed 'tool/src/test/java/org/antlr/test/TestSemanticPredicates.java'
removed 'tool/src/test/java/org/antlr/test/TestTopologicalSort.java'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2 ...
debug: java-pkg_gen-cp: entering function, parameters: JAVA_GENTOO_CLASSPATH
debug: java-pkg-simple_getclasspath: entering function, parameters: 
debug: java-pkg_getjars: entering function, parameters: --with-dependencies antlr,stringtemplate
debug: antlr,stringtemplate:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar
debug: java-pkg_ensure-dep: entering function, parameters: antlr
debug: Matching against: /(antlr(-[^:]+)?:0|(-[^:]+)?:antlr)\b
debug: java-pkg_ensure-dep: entering function, parameters: stringtemplate
debug: Matching against: /(stringtemplate(-[^:]+)?:0|(-[^:]+)?:stringtemplate)\b
debug: java-pkg_record-jar_: entering function, parameters: antlr
debug: java-pkg_record-jar_: entering function, parameters: stringtemplate
debug: CLASSPATH=/var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar
debug: java-pkg-simple_prepend_resources: entering function, parameters: target/classes
debug: ejavac: entering function, parameters: -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 1.8 -target 1.8
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
./java/org/antlr/runtime/tree/BaseTreeAdaptor.java:245: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
		treeToUniqueIDMap.put(node, new Integer(ID));
		                            ^
./java/org/antlr/runtime/tree/TreeWizard.java:147: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			m.put(name, new Integer(ttype));
			            ^
./java/org/antlr/runtime/tree/TreeWizard.java:183: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
		List elements = (List)m.get(new Integer(ttype));
		                            ^
./java/org/antlr/runtime/tree/TreeWizard.java:186: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			m.put(new Integer(ttype), elements);
			      ^
./java/org/antlr/runtime/BaseRecognizer.java:791: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			(Integer)state.ruleMemo[ruleIndex].get(new Integer(ruleStartIndex));
			                                       ^
./java/org/antlr/runtime/BaseRecognizer.java:839: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				new Integer(ruleStartIndex), new Integer(stopTokenIndex)
				^
./java/org/antlr/runtime/BaseRecognizer.java:839: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				new Integer(ruleStartIndex), new Integer(stopTokenIndex)
				                             ^
./java/org/antlr/runtime/tree/DOTTreeGenerator.java:200: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			nodeToNumberMap.put(t, new Integer(nodeNumber));
			                       ^
./java/org/antlr/runtime/CommonTokenStream.java:101: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
					channelOverrideMap.get(new Integer(t.getType()));
					                       ^
./java/org/antlr/runtime/CommonTokenStream.java:107: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				 discardSet.contains(new Integer(t.getType())) )
				                     ^
./java/org/antlr/runtime/CommonTokenStream.java:168: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
        channelOverrideMap.put(new Integer(ttype), new Integer(channel));
                               ^
./java/org/antlr/runtime/CommonTokenStream.java:168: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
        channelOverrideMap.put(new Integer(ttype), new Integer(channel));
                                                   ^
./java/org/antlr/runtime/CommonTokenStream.java:175: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
        discardSet.add(new Integer(ttype));
                       ^
./java/org/antlr/runtime/TokenRewriteStream.java:315: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
		lastRewriteTokenIndexes.put(programName, new Integer(i));
		                                         ^
./java/org/antlr/runtime/TokenRewriteStream.java:374: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			RewriteOperation op = (RewriteOperation)indexToOp.get(new Integer(i));
			                                                      ^
./java/org/antlr/runtime/TokenRewriteStream.java:375: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			indexToOp.remove(new Integer(i)); // remove so any left have index size-1
			                 ^
./java/org/antlr/runtime/TokenRewriteStream.java:524: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			if ( m.get(new Integer(op.index))!=null ) {
			           ^
./java/org/antlr/runtime/TokenRewriteStream.java:527: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			m.put(new Integer(op.index), op);
			      ^
./java/org/antlr/runtime/debug/Tracer.java:61: warning: [removal] Character(char) in Character has been deprecated and marked for removal
		return new Character((char)input.LA(k));
		       ^
./java/org/antlr/runtime/debug/Profiler.java:136: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
		lookaheadStack.add(new Integer(startingLookaheadIndex));
		                   ^
./java/org/antlr/runtime/debug/Profiler.java:234: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			new Integer(maxLookaheadInCurrentDecision)
			^
Note: ./java/org/antlr/runtime/debug/RemoteDebugEventSocketListener.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
25 warnings
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
antlr2/org/antlr/grammar/v2/antlr.g:963: warning:nongreedy block may exit incorrectly due
antlr2/org/antlr/grammar/v2/antlr.g:963:     	to limitations of linear approximate lookahead (first k-1 sets
antlr2/org/antlr/grammar/v2/antlr.g:963:     	in lookahead not singleton).
antlr2/org/antlr/grammar/v2/antlr.g:1141: warning:nongreedy block may exit incorrectly due
antlr2/org/antlr/grammar/v2/antlr.g:1141:     	to limitations of linear approximate lookahead (first k-1 sets
antlr2/org/antlr/grammar/v2/antlr.g:1141:     	in lookahead not singleton).
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
antlr2/org/antlr/grammar/v2/assign.types.g:160:18: warning:Rule 'optionsSpec' returns a value
antlr2/org/antlr/grammar/v2/assign.types.g:240:13: warning:Rule 'optionsSpec' returns a value
antlr2/org/antlr/grammar/v2/assign.types.g:263:14: warning:Rule 'optionsSpec' returns a value
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
antlr2/org/antlr/grammar/v2/buildnfa.g:298:19: warning:Rule 'atom' returns a value
antlr2/org/antlr/grammar/v2/buildnfa.g:298:32: warning:Rule 'atom' returns a value
antlr2/org/antlr/grammar/v2/buildnfa.g:310:20: warning:Rule 'block' returns a value
ANTLR Parser Generator   Version 2.7.7 (2006-11-01)   1989-2005
antlr2/org/antlr/grammar/v2/define.g:253:24: warning:Rule 'modifier' returns a value
debug: ejavac: entering function, parameters: -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/distdir/antlr-3.2.jar java/org/antlr/tool/CompositeGrammar.java
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 1.8 -target 1.8
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 1.8 -target 1.8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/distdir/antlr-3.2.jar java/org/antlr/tool/CompositeGrammar.java
javac -source 1.8 -target 1.8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/distdir/antlr-3.2.jar java/org/antlr/tool/CompositeGrammar.java
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: java/org/antlr/tool/CompositeGrammar.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
warning(105): antlr3/org/antlr/grammar/v3/ANTLRv3.g:94:9: no lexer rule corresponding to token: DOC_COMMENT
warning(105): antlr3/org/antlr/grammar/v3/ANTLRv3.g:355:22: no lexer rule corresponding to token: SEMPRED
warning(105): antlr3/org/antlr/grammar/v3/ANTLRv3.g:158:4: no lexer rule corresponding to token: DOC_COMMENT
warning(105): antlr3/org/antlr/grammar/v3/ANTLRv3.g:249:6: no lexer rule corresponding to token: SEMPRED
warning(200): antlr3/org/antlr/grammar/v3/ANTLRv3.g:473:5: Decision can match input such as "' ''$''A''N''T''L''R'' ''s''r''c'' ''"''\\''\'''"'' ''0'..'9'" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
debug: java-pkg_gen-cp: entering function, parameters: JAVA_GENTOO_CLASSPATH
debug: java-pkg-simple_getclasspath: entering function, parameters: 
debug: java-pkg_getjars: entering function, parameters: --with-dependencies antlr,stringtemplate
debug: antlr,stringtemplate:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar
debug: java-pkg_ensure-dep: entering function, parameters: antlr
debug: Matching against: /(antlr(-[^:]+)?:0|(-[^:]+)?:antlr)\b
debug: java-pkg_ensure-dep: entering function, parameters: stringtemplate
debug: Matching against: /(stringtemplate(-[^:]+)?:0|(-[^:]+)?:stringtemplate)\b
debug: java-pkg_record-jar_: entering function, parameters: antlr
debug: java-pkg_record-jar_: entering function, parameters: stringtemplate
debug: CLASSPATH=/var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar
debug: java-pkg-simple_prepend_resources: entering function, parameters: target/classes
debug: ejavac: entering function, parameters: -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
debug: java-pkg_get-javac: entering function, parameters: 
debug: java-pkg_init-compiler_: entering function, parameters: 
debug: Read "" from /etc/java-config-2/build/compilers.conf
debug: java-pkg_javac-args: entering function, parameters: 
debug: want source: 1.8
debug: want target: 1.8
 �[32m*�[0m Verbose logging for "ejavac" function
 �[32m*�[0m Compiler executable: javac
 �[32m*�[0m Extra arguments: -source 1.8 -target 1.8
 �[32m*�[0m Complete command:
 �[32m*�[0m javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
./java/org/antlr/codegen/CodeGenerator.java:119: error: reference to StringTemplate is ambiguous
	protected StringTemplate recognizerST;
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:120: error: reference to StringTemplate is ambiguous
	protected StringTemplate outputFileST;
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:121: error: reference to StringTemplate is ambiguous
	protected StringTemplate headerFileST;
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:292: error: reference to StringTemplate is ambiguous
	public StringTemplate genRecognizer() {
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:639: error: reference to StringTemplate is ambiguous
	public StringTemplate genLookaheadDecision(StringTemplate recognizerST,
	                                           ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:639: error: reference to StringTemplate is ambiguous
	public StringTemplate genLookaheadDecision(StringTemplate recognizerST,
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:674: error: reference to StringTemplate is ambiguous
	public StringTemplate generateSpecialState(DFAState s) {
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:731: error: reference to StringTemplate is ambiguous
	protected StringTemplate genLabelExpr(StringTemplateGroup templates,
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:750: error: reference to StringTemplate is ambiguous
	protected StringTemplate genSemanticPredicateExpr(StringTemplateGroup templates,
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:762: error: reference to StringTemplate is ambiguous
	public StringTemplate genSetExpr(StringTemplateGroup templates,
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:817: error: reference to StringTemplate is ambiguous
	protected void genTokenTypeConstants(StringTemplate code) {
	                                     ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:835: error: reference to StringTemplate is ambiguous
	protected void genTokenTypeNames(StringTemplate code) {
	                                 ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:870: error: reference to StringTemplate is ambiguous
	protected StringTemplate genTokenVocabOutput() {
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:915: error: reference to StringTemplate is ambiguous
	public List<StringTemplate> translateArgAction(String ruleName,
	            ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:1045: error: reference to StringTemplate is ambiguous
	public StringTemplate translateTemplateConstructor(String ruleName,
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:1243: error: reference to StringTemplate is ambiguous
	public StringTemplate getRecognizerST() {
	       ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:1275: error: reference to StringTemplate is ambiguous
	public void write(StringTemplate code, String fileName) throws IOException {
	                  ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:86: error: reference to StringTemplate is ambiguous
    protected StringTemplate currentBlockST = null;
              ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:118: error: reference to StringTemplate is ambiguous
    protected StringTemplate recognizerST;
              ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:120: error: reference to StringTemplate is ambiguous
    protected StringTemplate outputFileST;
              ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:121: error: reference to StringTemplate is ambiguous
    protected StringTemplate headerFileST;
              ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:125: error: reference to StringTemplate is ambiguous
	protected StringTemplate getWildcardST(GrammarAST elementAST, GrammarAST ast_suffix, String label) {
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:133: error: reference to StringTemplate is ambiguous
	protected StringTemplate getRuleElementST(String name,
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:159: error: reference to StringTemplate is ambiguous
	protected StringTemplate getTokenElementST(String name,
	          ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:271: error: reference to StringTemplate is ambiguous
        StringTemplate recognizerST,
        ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:272: error: reference to StringTemplate is ambiguous
        StringTemplate outputFileST,
        ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:273: error: reference to StringTemplate is ambiguous
        StringTemplate headerFileST
        ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:566: error: reference to StringTemplate is ambiguous
		StringTemplate recognizerST
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:624: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rule(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1008: error: reference to StringTemplate is ambiguous
	public final StringTemplate  block(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1134: error: reference to StringTemplate is ambiguous
		StringTemplate ruleST
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1200: error: reference to StringTemplate is ambiguous
	public final StringTemplate  setBlock(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1258: error: reference to StringTemplate is ambiguous
	public final StringTemplate  alternative(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1339: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1459: error: reference to StringTemplate is ambiguous
		StringTemplate ruleST
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1490: error: reference to StringTemplate is ambiguous
		StringTemplate ruleST
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1517: error: reference to StringTemplate is ambiguous
	public final StringTemplate  element(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1724: error: reference to StringTemplate is ambiguous
	public final StringTemplate  notElement(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1830: error: reference to StringTemplate is ambiguous
	public final StringTemplate  ebnf(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1910: error: reference to StringTemplate is ambiguous
	public final StringTemplate  atom(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2208: error: reference to StringTemplate is ambiguous
	public final StringTemplate  tree(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2304: error: reference to StringTemplate is ambiguous
	public final StringTemplate  element_action(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2350: error: reference to StringTemplate is ambiguous
	public final StringTemplate  set(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2482: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_alternative(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2585: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_block(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2632: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_element(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2683: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_template(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2865: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_atom(AST _t,
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:3101: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_ebnf(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:3174: error: reference to StringTemplate is ambiguous
	public final StringTemplate  rewrite_tree(AST _t) throws RecognitionException {
	             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:325: error: reference to StringTemplate is ambiguous
			headerFileST = new StringTemplate(templates,"");
			                   ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:347: error: reference to StringTemplate is ambiguous
        StringTemplate gateST = templates.getInstanceOf("actionGate");
        ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:358: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
		headerFileST.setAttribute("buildTemplate", new Boolean(grammar.buildTemplate()));
		                                           ^
./java/org/antlr/codegen/CodeGenerator.java:359: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
		outputFileST.setAttribute("buildTemplate", new Boolean(grammar.buildTemplate()));
		                                           ^
./java/org/antlr/codegen/CodeGenerator.java:360: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
		headerFileST.setAttribute("buildAST", new Boolean(grammar.buildAST()));
		                                      ^
./java/org/antlr/codegen/CodeGenerator.java:361: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
		outputFileST.setAttribute("buildAST", new Boolean(grammar.buildAST()));
		                                      ^
./java/org/antlr/codegen/CodeGenerator.java:468: error: reference to StringTemplate is ambiguous
				StringTemplate extST = templates.getInstanceOf("headerFileExtension");
				^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:473: error: reference to StringTemplate is ambiguous
			StringTemplate tokenVocabSerialization = genTokenVocabOutput();
			^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:642: error: reference to StringTemplate is ambiguous
		StringTemplate decisionST;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:675: error: reference to StringTemplate is ambiguous
		StringTemplate stateST;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:684: error: reference to StringTemplate is ambiguous
		StringTemplate eotST = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:687: error: reference to StringTemplate is ambiguous
			StringTemplate edgeST;
			^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:696: error: reference to StringTemplate is ambiguous
				StringTemplate exprST =
				^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:709: error: reference to StringTemplate is ambiguous
					StringTemplate predST = preds.genExpr(this,
					^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:722: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
			stateST.setAttribute("semPredState", new Boolean(foundGatedPred));
			                                     ^
./java/org/antlr/codegen/CodeGenerator.java:743: error: reference to StringTemplate is ambiguous
		StringTemplate eST = templates.getInstanceOf("lookaheadTest");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:772: error: reference to StringTemplate is ambiguous
			StringTemplate emptyST = new StringTemplate(templates, "");
			^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:772: error: reference to StringTemplate is ambiguous
			StringTemplate emptyST = new StringTemplate(templates, "");
			                             ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:782: error: reference to StringTemplate is ambiguous
		StringTemplate setST = templates.getInstanceOf("setTest");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:789: error: reference to StringTemplate is ambiguous
			StringTemplate eST;
			^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:871: error: reference to StringTemplate is ambiguous
		StringTemplate vocabFileST =
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:872: error: reference to StringTemplate is ambiguous
			new StringTemplate(vocabFilePattern,
			    ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:920: error: reference to StringTemplate is ambiguous
		List<StringTemplate> translatedArgs = new ArrayList<StringTemplate>();
		     ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:920: error: reference to StringTemplate is ambiguous
		List<StringTemplate> translatedArgs = new ArrayList<StringTemplate>();
		                                                    ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:931: error: reference to StringTemplate is ambiguous
				StringTemplate catST = new StringTemplate(templates, "<chunks>");
				^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:931: error: reference to StringTemplate is ambiguous
				StringTemplate catST = new StringTemplate(templates, "<chunks>");
				                           ^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:1082: error: reference to StringTemplate is ambiguous
		StringTemplate st = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/codegen/CodeGenerator.java:1251: error: reference to StringTemplate is ambiguous
		StringTemplate extST = templates.getInstanceOf("codeFileExtension");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./java/org/antlr/tool/GrammarSanity.java:274: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
											new Integer(outerAltNum));
											^
./java/org/antlr/tool/GrammarSanity.java:298: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
									new Integer(outerAltNum));
									^
./antlr2/org/antlr/grammar/v2/ANTLRParser.java:959: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
				value = new Integer(i_AST.getText());
				        ^
./antlr2/org/antlr/grammar/v2/AssignTokenTypesWalker.java:632: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
				value = new Integer(i.getText());
				        ^
./java/org/antlr/misc/Utils.java:41: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			return new Integer(x);
			       ^
./java/org/antlr/misc/Utils.java:44: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			ints[x] = new Integer(x);
			          ^
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:152: error: reference to StringTemplate is ambiguous
		StringTemplate elementST = templates.getInstanceOf(name);
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:177: error: reference to StringTemplate is ambiguous
		StringTemplate elementST = templates.getInstanceOf(name);
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:571: error: reference to StringTemplate is ambiguous
		StringTemplate rST;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:625: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:633: error: reference to StringTemplate is ambiguous
		StringTemplate b;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1011: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1015: error: reference to StringTemplate is ambiguous
		StringTemplate decision = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1030: error: reference to StringTemplate is ambiguous
		StringTemplate alt = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1031: error: reference to StringTemplate is ambiguous
		StringTemplate rew = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1032: error: reference to StringTemplate is ambiguous
		StringTemplate sb = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1201: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1206: error: reference to StringTemplate is ambiguous
		StringTemplate setcode = null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1234: error: reference to StringTemplate is ambiguous
			StringTemplate altcode=templates.getInstanceOf("alt");
			^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1259: error: reference to StringTemplate is ambiguous
		StringTemplate code=templates.getInstanceOf("alt");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1291: error: reference to StringTemplate is ambiguous
		StringTemplate e;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1340: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1346: error: reference to StringTemplate is ambiguous
		StringTemplate alt;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1371: error: reference to StringTemplate is ambiguous
		StringTemplate retvalST = templates.getInstanceOf("prevRuleRootRef");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1520: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1727: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1831: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1913: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:1938: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
										  new Integer(outerAltNum));
										  ^
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2209: error: reference to StringTemplate is ambiguous
		StringTemplate code=templates.getInstanceOf("tree");
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2213: error: reference to StringTemplate is ambiguous
		StringTemplate el=null, act=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2305: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2353: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/CodeGenTreeWalker.java:2483: error: reference to StringTemplate is ambiguous
		StringTemplate code=null;
		^
  both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:99: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("lexer", this), new Integer(43));
	                                                 ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:100: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("scope", this), new Integer(33));
	                                                 ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:101: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("finally", this), new Integer(67));
	                                                   ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:102: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("throws", this), new Integer(62));
	                                                  ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:103: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("import", this), new Integer(34));
	                                                  ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:104: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("fragment", this), new Integer(38));
	                                                    ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:105: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("private", this), new Integer(58));
	                                                   ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:106: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("grammar", this), new Integer(45));
	                                                   ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:107: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("tokens", this), new Integer(5));
	                                                  ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:108: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("options", this), new Integer(4));
	                                                   ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:109: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("parser", this), new Integer(6));
	                                                  ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:110: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("tree", this), new Integer(44));
	                                                ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:111: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("protected", this), new Integer(56));
	                                                     ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:112: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("returns", this), new Integer(61));
	                                                   ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:113: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("public", this), new Integer(57));
	                                                  ^
./antlr2/org/antlr/grammar/v2/ANTLRLexer.java:114: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
	literals.put(new ANTLRHashString("catch", this), new Integer(66));
	                                                 ^
Note: ./java/org/antlr/codegen/CodeGenerator.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
32 warnings
only showing the first 100 errors, of 115 total; use -Xmaxerrs if you would like to see more
 �[31;01m*�[0m ERROR: dev-java/antlr-3.2-r1::gentoo failed (compile phase):
 �[31;01m*�[0m   ejavac failed
 �[31;01m*�[0m 
 �[31;01m*�[0m Call stack:
 �[31;01m*�[0m     ebuild.sh, line  136:  Called src_compile
 �[31;01m*�[0m   environment, line 2374:  Called java-pkg-simple_src_compile
 �[31;01m*�[0m   environment, line  866:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '-classpath' '/var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar' '@sources.lst'
 �[31;01m*�[0m   environment, line  617:  Called die
 �[31;01m*�[0m The specific snippet of code:
 �[31;01m*�[0m       "${args[@]}" || die "ejavac failed"
 �[31;01m*�[0m 
 �[31;01m*�[0m If you need support, post the output of `emerge --info '=dev-java/antlr-3.2-r1::gentoo'`,
 �[31;01m*�[0m the complete build log and the output of `emerge -pqv '=dev-java/antlr-3.2-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-21  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-21"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =antlr-3.2
 �[31;01m*�[0m The complete build log is located at '/var/tmp/portage/dev-java/antlr-3.2-r1/temp/build.log'.
 �[31;01m*�[0m The ebuild environment file is located at '/var/tmp/portage/dev-java/antlr-3.2-r1/temp/environment'.
 �[31;01m*�[0m Working directory: '/var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/tool/src/main'
 �[31;01m*�[0m S: '/var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant