* Package: dev-java/antlr-tool-3.5.3:3.5  * Repository: gentoo  * Maintainer: java@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux test  * FEATURES: network-sandbox preserve-libs sandbox test 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: >=virtual/jdk-1.8:* ~dev-java/antlr-runtime-3.5.3:3.5 dev-java/stringtemplate:4 >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) test? ( dev-java/junit:4 ) 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/ * Using: openjdk-21 >>> Unpacking source... >>> Unpacking antlr-tool-3.5.3-sources.jar to /var/tmp/portage/dev-java/antlr-tool-3.5.3/work >>> Unpacking antlr-3.5.3.tar.gz to /var/tmp/portage/dev-java/antlr-tool-3.5.3/work >>> Source unpacked in /var/tmp/portage/dev-java/antlr-tool-3.5.3/work >>> Preparing source in /var/tmp/portage/dev-java/antlr-tool-3.5.3/work ... ./antlr3-3.5.3/runtime/ActionScript/project/lib/FlexAntTasks.jar ./antlr3-3.5.3/antlr-ant/main/antlr3-task/antlr3.jar Searching for bundled jars: None found. Searching for bundled classes (no output if none found): Search done. removed '/var/tmp/portage/dev-java/antlr-tool-3.5.3/work/antlr3-3.5.3/tool/src/test/java/org/antlr/test/TestDFAConversion.java' removed '/var/tmp/portage/dev-java/antlr-tool-3.5.3/work/antlr3-3.5.3/tool/src/test/java/org/antlr/test/TestSemanticPredicates.java' removed '/var/tmp/portage/dev-java/antlr-tool-3.5.3/work/antlr3-3.5.3/tool/src/test/java/org/antlr/test/TestTopologicalSort.java' >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/antlr-tool-3.5.3/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/antlr-tool-3.5.3/work ... 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: --build-only --with-dependencies junit-4 debug: junit-4:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar debug: java-pkg_ensure-dep: entering function, parameters: build junit-4 debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4 debug: java-pkg_getjars: entering function, parameters: --with-dependencies antlr-runtime-3.5,stringtemplate-4 debug: antlr-runtime-3.5,stringtemplate-4:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: java-pkg_ensure-dep: entering function, parameters: antlr-runtime-3.5 debug: Matching against: /antlr-runtime(-3\.5(-[^:]+)?:0|(-[^:]+)?:3\.5)\b debug: java-pkg_ensure-dep: entering function, parameters: stringtemplate-4 debug: Matching against: /stringtemplate(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_record-jar_: entering function, parameters: antlr-runtime-3.5 debug: java-pkg_record-jar_: entering function, parameters: stringtemplate-4 debug: CLASSPATH=/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: java-pkg-simple_prepend_resources: entering function, parameters: target/classes /var/tmp/portage/dev-java/antlr-tool-3.5.3/work/antlr3-3.5.3/tool/src/main/resources debug: ejavac: entering function, parameters: -d target/classes -encoding UTF-8 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.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 * Verbose logging for "ejavac" function * Compiler executable: javac * Extra arguments: -source 1.8 -target 1.8 * Complete command: * javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar @sources.lst javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.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. Note: 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. 4 warnings >>> Source compiled. >>> Test phase: dev-java/antlr-tool-3.5.3 debug: java-pkg-simple_getclasspath: entering function, parameters: debug: java-pkg_getjars: entering function, parameters: --build-only --with-dependencies junit-4 debug: junit-4:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar debug: java-pkg_ensure-dep: entering function, parameters: build junit-4 debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4 debug: java-pkg_getjars: entering function, parameters: --with-dependencies antlr-runtime-3.5,stringtemplate-4 debug: antlr-runtime-3.5,stringtemplate-4:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: java-pkg_ensure-dep: entering function, parameters: build antlr-runtime-3.5 debug: Matching against: /antlr-runtime(-3\.5(-[^:]+)?:0|(-[^:]+)?:3\.5)\b debug: java-pkg_ensure-dep: entering function, parameters: build stringtemplate-4 debug: Matching against: /stringtemplate(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_record-jar_: entering function, parameters: --build-only antlr-runtime-3.5 debug: java-pkg_record-jar_: entering function, parameters: --build-only stringtemplate-4 debug: CLASSPATH=target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: java-pkg-simple_prepend_resources: entering function, parameters: target/test-classes debug: ejavac: entering function, parameters: -d target/test-classes -encoding UTF-8 -classpath target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar @test_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 * Verbose logging for "ejavac" function * Compiler executable: javac * Extra arguments: -source 1.8 -target 1.8 * Complete command: * javac -source 1.8 -target 1.8 -d target/test-classes -encoding UTF-8 -classpath target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar @test_sources.lst javac -source 1.8 -target 1.8 -d target/test-classes -encoding UTF-8 -classpath target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar @test_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. /var/tmp/portage/dev-java/antlr-tool-3.5.3/work/antlr3-3.5.3/tool/src/test/java/org/antlr/test/TestCharDFAConversion.java:544: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal nonDetAlts!=null?nonDetAlts.contains(new Integer(expectingUnreachableAlts[i])):false); ^ 5 warnings debug: ejunit4: entering function, parameters: -classpath target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar org.antlr.test.TestASTConstruction org.antlr.test.TestAttributes org.antlr.test.TestAutoAST org.antlr.test.TestBufferedTreeNodeStream org.antlr.test.TestCharDFAConversion org.antlr.test.TestCommonTokenStream org.antlr.test.TestCompositeGrammars org.antlr.test.TestDFAMatching org.antlr.test.TestFastQueue org.antlr.test.TestHeteroAST org.antlr.test.TestInterpretedLexing org.antlr.test.TestInterpretedParsing org.antlr.test.TestIntervalSet org.antlr.test.TestJavaCodeGeneration org.antlr.test.TestLeftRecursion org.antlr.test.TestLexer org.antlr.test.TestMessages org.antlr.test.TestNFAConstruction org.antlr.test.TestRewriteAST org.antlr.test.TestRewriteTemplates org.antlr.test.TestSemanticPredicateEvaluation org.antlr.test.TestSets org.antlr.test.TestSymbolDefinitions org.antlr.test.TestSyntacticPredicateEvaluation org.antlr.test.TestSyntaxErrors org.antlr.test.TestTemplates org.antlr.test.TestTokenRewriteStream org.antlr.test.TestTreeGrammarRewriteAST org.antlr.test.TestTreeIterator org.antlr.test.TestTreeNodeStream org.antlr.test.TestTreeParsing org.antlr.test.TestTreeWizard org.antlr.test.TestTrees debug: ejunit_: entering function, parameters: junit-4 -classpath target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar org.antlr.test.TestASTConstruction org.antlr.test.TestAttributes org.antlr.test.TestAutoAST org.antlr.test.TestBufferedTreeNodeStream org.antlr.test.TestCharDFAConversion org.antlr.test.TestCommonTokenStream org.antlr.test.TestCompositeGrammars org.antlr.test.TestDFAMatching org.antlr.test.TestFastQueue org.antlr.test.TestHeteroAST org.antlr.test.TestInterpretedLexing org.antlr.test.TestInterpretedParsing org.antlr.test.TestIntervalSet org.antlr.test.TestJavaCodeGeneration org.antlr.test.TestLeftRecursion org.antlr.test.TestLexer org.antlr.test.TestMessages org.antlr.test.TestNFAConstruction org.antlr.test.TestRewriteAST org.antlr.test.TestRewriteTemplates org.antlr.test.TestSemanticPredicateEvaluation org.antlr.test.TestSets org.antlr.test.TestSymbolDefinitions org.antlr.test.TestSyntacticPredicateEvaluation org.antlr.test.TestSyntaxErrors org.antlr.test.TestTemplates org.antlr.test.TestTokenRewriteStream org.antlr.test.TestTreeGrammarRewriteAST org.antlr.test.TestTreeIterator org.antlr.test.TestTreeNodeStream org.antlr.test.TestTreeParsing org.antlr.test.TestTreeWizard org.antlr.test.TestTrees debug: java-pkg_getjars: entering function, parameters: --with-dependencies junit-4,antlr-runtime-3.5,stringtemplate-4 debug: junit-4,antlr-runtime-3.5,stringtemplate-4:/usr/share/junit-4/lib/junit.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: java-pkg_ensure-dep: entering function, parameters: build junit-4 debug: Matching against: /junit(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_ensure-dep: entering function, parameters: build antlr-runtime-3.5 debug: Matching against: /antlr-runtime(-3\.5(-[^:]+)?:0|(-[^:]+)?:3\.5)\b debug: java-pkg_ensure-dep: entering function, parameters: build stringtemplate-4 debug: Matching against: /stringtemplate(-4(-[^:]+)?:0|(-[^:]+)?:4)\b debug: java-pkg_record-jar_: entering function, parameters: --build-only junit-4 debug: java-pkg_record-jar_: entering function, parameters: --build-only antlr-runtime-3.5 debug: java-pkg_record-jar_: entering function, parameters: --build-only stringtemplate-4 debug: Calling: java -cp debug: target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar debug: -Djava.io.tmpdir=/var/tmp/portage/dev-java/antlr-tool-3.5.3/temp debug: -Djava.awt.headless=true debug: org.junit.runner.JUnitCore debug: org.antlr.test.TestASTConstruction debug: org.antlr.test.TestAttributes debug: org.antlr.test.TestAutoAST debug: org.antlr.test.TestBufferedTreeNodeStream debug: org.antlr.test.TestCharDFAConversion debug: org.antlr.test.TestCommonTokenStream debug: org.antlr.test.TestCompositeGrammars debug: org.antlr.test.TestDFAMatching debug: org.antlr.test.TestFastQueue debug: org.antlr.test.TestHeteroAST debug: org.antlr.test.TestInterpretedLexing debug: org.antlr.test.TestInterpretedParsing debug: org.antlr.test.TestIntervalSet debug: org.antlr.test.TestJavaCodeGeneration debug: org.antlr.test.TestLeftRecursion debug: org.antlr.test.TestLexer debug: org.antlr.test.TestMessages debug: org.antlr.test.TestNFAConstruction debug: org.antlr.test.TestRewriteAST debug: org.antlr.test.TestRewriteTemplates debug: org.antlr.test.TestSemanticPredicateEvaluation debug: org.antlr.test.TestSets debug: org.antlr.test.TestSymbolDefinitions debug: org.antlr.test.TestSyntacticPredicateEvaluation debug: org.antlr.test.TestSyntaxErrors debug: org.antlr.test.TestTemplates debug: org.antlr.test.TestTokenRewriteStream debug: org.antlr.test.TestTreeGrammarRewriteAST debug: org.antlr.test.TestTreeIterator debug: org.antlr.test.TestTreeNodeStream debug: org.antlr.test.TestTreeParsing debug: org.antlr.test.TestTreeWizard debug: org.antlr.test.TestTrees JUnit version 4.13.2-SNAPSHOT .......warning(105): :2:8: no lexer rule corresponding to token: ID warning(105): :2:8: no lexer rule corresponding to token: ID ..warning(105): :3:5: no lexer rule corresponding to token: ID warning(105): :3:5: no lexer rule corresponding to token: ID ..warning(105): :2:10: no lexer rule corresponding to token: A warning(105): :2:12: no lexer rule corresponding to token: B warning(105): :2:10: no lexer rule corresponding to token: A warning(105): :2:12: no lexer rule corresponding to token: B .warning(105): :2:7: no lexer rule corresponding to token: ID warning(105): :2:7: no lexer rule corresponding to token: ID .warning(105): :2:7: no lexer rule corresponding to token: ID warning(105): :2:7: no lexer rule corresponding to token: ID .warning(105): :4:5: no lexer rule corresponding to token: ID warning(105): :4:5: no lexer rule corresponding to token: ID ..warning(105): :2:7: no lexer rule corresponding to token: ID warning(105): :2:7: no lexer rule corresponding to token: ID ..warning(105): :2:10: no lexer rule corresponding to token: A warning(105): :2:12: no lexer rule corresponding to token: B warning(105): :2:10: no lexer rule corresponding to token: A warning(105): :2:12: no lexer rule corresponding to token: B ....warning(105): :2:11: no lexer rule corresponding to token: B warning(105): :2:9: no lexer rule corresponding to token: A warning(105): :2:11: no lexer rule corresponding to token: B warning(105): :2:9: no lexer rule corresponding to token: A ........warning(105): :3:5: no lexer rule corresponding to token: ID warning(105): :3:5: no lexer rule corresponding to token: ID ..warning(105): :2:8: no lexer rule corresponding to token: A warning(105): :2:10: no lexer rule corresponding to token: B warning(105): :2:8: no lexer rule corresponding to token: A warning(105): :2:10: no lexer rule corresponding to token: B ........................../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestAttributes-1702063184102/TParser.java:153: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestAttributes-1702063184102/TParser.java:109: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestAttributes-1702063184102/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestAttributes-1702063184102/TParser.java:130: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib,"hi"); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestAttributes-1702063184102/TParser.java:174: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib,"mom"); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 5 errors E.........................................................................1:6: tree grammar t options {ASTLabelType=CommonTree; } ; a returns [int x] :; b : r= a {###$r.x; $r.start; $r.stop!!!}; equeue:infos: []errors: [error(116): :6:9: unknown attribute for rule a: stop]warnings: [] .........................exec stderrVacuum: line 1:0 mismatched input 'x' expecting set null ..exec stderrVacuum: line 1:4 extraneous input 'ick' expecting INT ...exec stderrVacuum: line 1:0 missing ID at '34' ....exec stderrVacuum: line 1:4 extraneous input '34' expecting ID .........exec stderrVacuum: line 1:3 missing INT at '' .......exec stderrVacuum: line 1:0 no viable alternative at input '*' .............exec stderrVacuum: line 1:0 missing ID at '34' .exec stderrVacuum: line 1:4 missing ID at '=' ...exec stderrVacuum: line 1:3 mismatched input '' expecting INT ............................................warning(200): :7:17: Decision can match input such as "'\\''\\'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input warning(200): :7:17: Decision can match input such as "'\\''}''\u0000'..'\uFFFF'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input warning(200): :7:17: Decision can match input such as "'\\''{'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input warning(200): :7:17: Decision can match input such as "'\\''\\'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input warning(200): :7:17: Decision can match input such as "'\\''}''\u0000'..'\uFFFF'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input warning(200): :7:17: Decision can match input such as "'\\''{'" using multiple alternatives: 2, 3 As a result, alternative(s) 3 were disabled for that input .................warning(138): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestCompositeGrammars-1702063199945/M.g:0:1: grammar M: no start rule (no rule can obviously be followed by EOF) ..............warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestCompositeGrammars-1702063201606/M.g:3:42: no lexer rule corresponding to token: B warning(138): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestCompositeGrammars-1702063201606/M.g:0:1: grammar M: no start rule (no rule can obviously be followed by EOF) ...Map toString looks like: {'a'=4, 'x'=6} Tree map looks like: {'a'=4, 'x'=6} .............................................................................................warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:2:8: no lexer rule corresponding to token: A warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:3:12: no lexer rule corresponding to token: B warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:3:17: no lexer rule corresponding to token: Z warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:2:15: no lexer rule corresponding to token: X warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:3:8: no lexer rule corresponding to token: A warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:3:15: no lexer rule corresponding to token: X warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:2:17: no lexer rule corresponding to token: Y warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestJavaCodeGeneration-1702063209352/T.g:2:12: no lexer rule corresponding to token: B ....I..............warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestLexer-1702063211659/P.g:3:5: no lexer rule corresponding to token: X ...................................warning(105): :2:5: no lexer rule corresponding to token: A warning(105): :2:5: no lexer rule corresponding to token: A ...............................exec stderrVacuum: line 1:0 mismatched input 'x' expecting set null ..exec stderrVacuum: line 1:4 extraneous input 'ick' expecting INT .............exec stderrVacuum: line 1:0 missing ID at '34' ...exec stderrVacuum: line 1:4 extraneous input '34' expecting ID ............exec stderrVacuum: line 1:3 missing INT at '' ...............exec stderrVacuum: Exception in thread "main" org.antlr.runtime.tree.RewriteCardinalityException: token ID at org.antlr.runtime.tree.RewriteRuleElementStream._next(RewriteRuleElementStream.java:165) at org.antlr.runtime.tree.RewriteRuleTokenStream.nextNode(RewriteRuleTokenStream.java:58) at TParser.a(TParser.java:115) at Test.main(Test.java:15) .......exec stderrVacuum: line 1:0 no viable alternative at input '*' ...warning(138): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteAST-1702063221990/T.g:0:1: grammar T: no start rule (no rule can obviously be followed by EOF) .exec stderrVacuum: Exception in thread "main" org.antlr.runtime.tree.RewriteEarlyExitException at TParser.a(TParser.java:113) at Test.main(Test.java:15) ........exec stderrVacuum: line 1:0 missing ID at '34' .exec stderrVacuum: line 1:4 missing ID at '=' ..exec stderrVacuum: Exception in thread "main" org.antlr.runtime.tree.RewriteCardinalityException: token ID at org.antlr.runtime.tree.RewriteRuleElementStream._next(RewriteRuleElementStream.java:165) at org.antlr.runtime.tree.RewriteRuleTokenStream.nextNode(RewriteRuleTokenStream.java:58) at TParser.a(TParser.java:118) at Test.main(Test.java:15) .exec stderrVacuum: Exception in thread "main" org.antlr.runtime.tree.RewriteEmptyStreamException: token ID at org.antlr.runtime.tree.RewriteRuleElementStream._next(RewriteRuleElementStream.java:158) at org.antlr.runtime.tree.RewriteRuleTokenStream.nextNode(RewriteRuleTokenStream.java:58) at TParser.a(TParser.java:112) at Test.main(Test.java:15) .............../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226484/TParser.java:111: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226484/TParser.java:65: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226484/TParser.java:91: error: reference to StringTemplate is ambiguous System.out.println((b2!=null?((StringTemplate)b2.getTemplate()):null).toString()); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 3 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226568/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226568/TParser.java:84: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib,(ID1!=null?ID1.getText():null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 2 errors E../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226657/TParser.java:102: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226657/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 2 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226731/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226731/TParser.java:85: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "",new STAttrMap().put("x", (ID1!=null?ID1.getText():null)).put("y", (INT2!=null?INT2.getText():null))); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 2 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226813/TP.java:98: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226813/TP.java:59: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226813/TP.java:81: error: reference to println is ambiguous System.out.println((a1!=null?((StringTemplate)a1.getTemplate()):null)); ^ both method println(char[]) in PrintStream and method println(String) in PrintStream match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226813/TP.java:81: error: reference to StringTemplate is ambiguous System.out.println((a1!=null?((StringTemplate)a1.getTemplate()):null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226813/TP.java:121: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "||",new STAttrMap().put("x", (ID2!=null?ID2.getText():null))); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 5 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063226952/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 1 error E../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227038/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227038/TParser.java:84: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate((ID1!=null?ID1.getText():null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 2 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227113/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 1 error E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227183/TParser.java:101: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227183/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227183/TParser.java:82: error: reference to println is ambiguous System.out.println((b1!=null?((StringTemplate)b1.getTemplate()):null)); ^ both method println(char[]) in PrintStream and method println(String) in PrintStream match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227183/TParser.java:82: error: reference to StringTemplate is ambiguous System.out.println((b1!=null?((StringTemplate)b1.getTemplate()):null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 4 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227257/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227257/TParser.java:85: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "x:, y:;",new STAttrMap().put("x", ID1).put("y", INT2)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 2 errors E.../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227359/TP.java:96: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227359/TP.java:59: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227359/TP.java:119: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "||",new STAttrMap().put("x", (ID1!=null?ID1.getText():null))); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 3 errors E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227507/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 1 error E./var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestRewriteTemplates-1702063227590/TParser.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 1 error E.warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSemanticPredicateEvaluation-1702063227665/foo.g:2:8: no lexer rule corresponding to token: B .warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSemanticPredicateEvaluation-1702063227816/foo.g:2:8: no lexer rule corresponding to token: B .warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSemanticPredicateEvaluation-1702063227958/foo.g:1:20: no lexer rule corresponding to token: B ........warning(105): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSemanticPredicateEvaluation-1702063229160/foo.g:2:8: no lexer rule corresponding to token: B ..............................infos: []errors: [error(118): :0:1: symbol ID conflicts with global dynamic scope with same name, error(118): :0:1: symbol ID conflicts with global dynamic scope with same name]warnings: [] ..infos: []errors: [error(122): :2:27: label i conflicts with rule a's return value or parameter with same name, error(122): :2:27: label i conflicts with rule a's return value or parameter with same name]warnings: [] .infos: []errors: [error(118): :5:1: symbol a conflicts with global dynamic scope with same name, error(118): :5:1: symbol a conflicts with global dynamic scope with same name]warnings: [] .infos: []errors: [error(119): :2:5: label c conflicts with rule with same name, error(119): :2:5: label c conflicts with rule with same name]warnings: [] ..infos: []errors: [error(118): :5:5: symbol s conflicts with global dynamic scope with same name, error(118): :5:5: symbol s conflicts with global dynamic scope with same name]warnings: [] ....infos: []errors: [error(123): :2:1: rule a's dynamically-scoped attribute a conflicts with the rule name, error(123): :2:1: rule a's dynamically-scoped attribute a conflicts with the rule name]warnings: [] ..warning(105): :5:5: no lexer rule corresponding to token: A warning(105): :5:9: no lexer rule corresponding to token: B warning(105): :5:5: no lexer rule corresponding to token: A warning(105): :5:9: no lexer rule corresponding to token: B .....infos: []errors: [error(124): :2:1: rule a's dynamically-scoped attribute n conflicts witha's return value or parameter with same name, error(124): :2:1: rule a's dynamically-scoped attribute n conflicts witha's return value or parameter with same name]warnings: [] ..infos: []errors: [error(124): :2:1: rule a's dynamically-scoped attribute n conflicts witha's return value or parameter with same name, error(124): :2:1: rule a's dynamically-scoped attribute n conflicts witha's return value or parameter with same name]warnings: [] .infos: []errors: [error(118): :0:1: symbol ID conflicts with global dynamic scope with same name, error(118): :0:1: symbol ID conflicts with global dynamic scope with same name]warnings: [] ...infos: []errors: [error(103): :2:1: parser rule a not allowed in lexer, error(103): :2:1: parser rule a not allowed in lexer]warnings: [] ........infos: []errors: [error(139): :2:6: set complement is empty ]warnings: [warning(105): :2:8: no lexer rule corresponding to token: A, warning(105): :2:10: no lexer rule corresponding to token: B, warning(105): :2:8: no lexer rule corresponding to token: A, warning(105): :2:10: no lexer rule corresponding to token: B] .infos: []errors: [error(118): :5:5: symbol s conflicts with global dynamic scope with same name, error(118): :5:5: symbol s conflicts with global dynamic scope with same name]warnings: [] .infos: []errors: [error(139): :2:7: set complement ~A is empty ]warnings: [warning(105): :2:7: no lexer rule corresponding to token: A, warning(105): :2:7: no lexer rule corresponding to token: A] .infos: []errors: [error(118): :5:1: symbol ID conflicts with global dynamic scope with same name, error(118): :0:1: symbol ID conflicts with global dynamic scope with same name, error(118): :5:1: symbol ID conflicts with global dynamic scope with same name, error(118): :0:1: symbol ID conflicts with global dynamic scope with same name]warnings: [] ......infos: []errors: [error(159): :3:1: cannot alias ID='d'; token name already assigned to 'a', error(101): :3:1: rule ID redefinition]warnings: [] ..infos: []errors: [error(121): :4:5: label n conflicts with rule a's dynamically-scoped attribute with same name, error(121): :4:5: label n conflicts with rule a's dynamically-scoped attribute with same name]warnings: [] .infos: []errors: [error(120): :2:5: label ID conflicts with token with same name, error(120): :2:5: label ID conflicts with token with same name]warnings: [] .infos: []errors: [error(106): :2:5: reference to undefined rule: r, error(106): :2:5: reference to undefined rule: r]warnings: [] .infos: []errors: [error(122): :2:27: label x conflicts with rule a's return value or parameter with same name, error(122): :2:27: label x conflicts with rule a's return value or parameter with same name]warnings: [] ........../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntacticPredicateEvaluation-1702063235856/TParser.java:63: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntacticPredicateEvaluation-1702063235856/TParser.java:134: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "1:;",new STAttrMap().put("a", input.toString(retval.start,input.LT(-1)))); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntacticPredicateEvaluation-1702063235856/TParser.java:178: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate(templateLib, "2:;",new STAttrMap().put("a", input.toString(retval.start,input.LT(-1)))); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 3 errors E........grammar T; a : (e '.')=> e '.' | (e ';')=> e ';' | 'z' ; e : '(' e ')' | 'i' ; exec stderrVacuum: line 1:1 no viable alternative at input '(' .exec stderrVacuum: line 1:1 no viable alternative at input 'e' .grammar T; a : 'a' 'b'* 'c' | 'a' 'b' 'd' ; q : 'e' ; exec stderrVacuum: line 1:2 no viable alternative at input 'e' .antlr reports errors from [-o, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238307, -lib, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238307, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238307/T.g] error(117): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238307/T.g:6:9: missing attribute access on rule scope: x !!! grammar: grammar T; options { backtrack = true; } // if b is rule ref, gens bad void x=null code a : x=b {Object o = $x; System.out.println("alt1");} | y=b ; b : 'a' ; ### ..antlr reports errors from [-o, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238478, -lib, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238478, /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestSyntaxErrors-1702063238478/T.g] error(100): :4:27: syntax error: antlr: dangling ']'? make sure to escape with \] !!! grammar: grammar T; options {output = AST;} tokens{NODE;} s : a=ID INT -> ^(NODE[$a]] INT); ID: 'a'..'z'+; INT: '0'..'9'+; ### .exec stderrVacuum: line 1:3 no viable alternative at input 'e' ...........................................................................................................................warning(200): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063251788/TP.g:2:3: Decision can match input such as "'+' DOWN INT INT UP" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input .......warning(200): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063253424/TP.g:2:3: Decision can match input such as "'+' DOWN ID..'+' DOWN ID..'+' UP INT UP" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input .warning(200): /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063253644/TP.g:2:3: Decision can match input such as "'+' DOWN ID INT UP" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input ../var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063254089/TP.java:99: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063254089/TP.java:60: error: reference to StringTemplate is ambiguous public StringTemplate st; ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063254089/TP.java:82: error: reference to println is ambiguous System.out.println((a1!=null?((StringTemplate)a1.getTemplate()):null)); ^ both method println(char[]) in PrintStream and method println(String) in PrintStream match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063254089/TP.java:82: error: reference to StringTemplate is ambiguous System.out.println((a1!=null?((StringTemplate)a1.getTemplate()):null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match /var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/antlr-org.antlr.test.TestTreeParsing-1702063254089/TP.java:123: error: reference to StringTemplate is ambiguous retval.st = new StringTemplate((INT2!=null?INT2.getText():null)); ^ both class org.antlr.stringtemplate.StringTemplate in org.antlr.stringtemplate and interface java.lang.StringTemplate in java.lang match 5 errors E............Map toString looks like: {5=[A], 6=[B], 7=[C], 8=[D]} Tree map looks like: {5=[A], 6=[B], 7=[C], 8=[D]} ...Map toString looks like: {5=[A, A], 6=[B, B, B], 7=[C], 8=[D, D]} Tree map looks like: {5=[A, A], 6=[B, B, B], 7=[C], 8=[D, D]} ............................................ Time: 73,182 There were 16 failures: 1) testRuleLabelOnTwoDifferentRulesTemplate(org.antlr.test.TestAttributes) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestAttributes.testRuleLabelOnTwoDifferentRulesTemplate(TestAttributes.java:2143) 2) testTemplateRefToDynamicAttributes(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testTemplateRefToDynamicAttributes(TestRewriteTemplates.java:191) 3) testEmbeddedLiteralConstructor(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testEmbeddedLiteralConstructor(TestRewriteTemplates.java:74) 4) testReturnValueWithTemplate(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testReturnValueWithTemplate(TestRewriteTemplates.java:175) 5) testInlineTemplateInvokingLib(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testInlineTemplateInvokingLib(TestRewriteTemplates.java:130) 6) testSingleNode(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:317) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:278) at org.antlr.test.TestRewriteTemplates.testSingleNode(TestRewriteTemplates.java:213) 7) testNamedTemplate(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testNamedTemplate(TestRewriteTemplates.java:102) 8) testAction(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testAction(TestRewriteTemplates.java:61) 9) testDelete(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testDelete(TestRewriteTemplates.java:48) 10) testTemplateReturn(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testTemplateReturn(TestRewriteTemplates.java:161) 11) testInlineTemplate(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testInlineTemplate(TestRewriteTemplates.java:87) 12) testSingleNodeRewriteMode(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:317) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:278) at org.antlr.test.TestRewriteTemplates.testSingleNodeRewriteMode(TestRewriteTemplates.java:233) 13) testIndirectTemplate(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testIndirectTemplate(TestRewriteTemplates.java:117) 14) testPredicatedAlts(org.antlr.test.TestRewriteTemplates) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestRewriteTemplates.testPredicatedAlts(TestRewriteTemplates.java:147) 15) testSynPredWithOutputTemplate(org.antlr.test.TestSyntacticPredicateEvaluation) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execParser(BaseTest.java:247) at org.antlr.test.TestSyntacticPredicateEvaluation.testSynPredWithOutputTemplate(TestSyntacticPredicateEvaluation.java:356) 16) testTemplateOutput(org.antlr.test.TestTreeParsing) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:317) at org.antlr.test.BaseTest.execTreeParser(BaseTest.java:278) at org.antlr.test.TestTreeParsing.testTemplateOutput(TestTreeParsing.java:160) FAILURES!!! Tests run: 854, Failures: 16 * ERROR: dev-java/antlr-tool-3.5.3::gentoo failed (test phase): * Running junit failed * * Call stack: * ebuild.sh, line 136: Called src_test * environment, line 2415: Called java-pkg-simple_src_test * environment, line 1008: Called ejunit4 '-classpath' 'target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar' 'org.antlr.test.TestASTConstruction' 'org.antlr.test.TestAttributes' 'org.antlr.test.TestAutoAST' 'org.antlr.test.TestBufferedTreeNodeStream' 'org.antlr.test.TestCharDFAConversion' 'org.antlr.test.TestCommonTokenStream' 'org.antlr.test.TestCompositeGrammars' 'org.antlr.test.TestDFAMatching' 'org.antlr.test.TestFastQueue' 'org.antlr.test.TestHeteroAST' 'org.antlr.test.TestInterpretedLexing' 'org.antlr.test.TestInterpretedParsing' 'org.antlr.test.TestIntervalSet' 'org.antlr.test.TestJavaCodeGeneration' 'org.antlr.test.TestLeftRecursion' 'org.antlr.test.TestLexer' 'org.antlr.test.TestMessages' 'org.antlr.test.TestNFAConstruction' 'org.antlr.test.TestRewriteAST' 'org.antlr.test.TestRewriteTemplates' 'org.antlr.test.TestSemanticPredicateEvaluation' 'org.antlr.test.TestSets' 'org.antlr.test.TestSymbolDefinitions' 'org.antlr.test.TestSyntacticPredicateEvaluation' 'org.antlr.test.TestSyntaxErrors' 'org.antlr.test.TestTemplates' 'org.antlr.test.TestTokenRewriteStream' 'org.antlr.test.TestTreeGrammarRewriteAST' 'org.antlr.test.TestTreeIterator' 'org.antlr.test.TestTreeNodeStream' 'org.antlr.test.TestTreeParsing' 'org.antlr.test.TestTreeWizard' 'org.antlr.test.TestTrees' * environment, line 654: Called ejunit_ 'junit-4' '-classpath' 'target/test-classes:antlr-tool.jar:/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar:/usr/share/antlr-runtime-3.5/lib/antlr-runtime.jar:/usr/share/stringtemplate-4/lib/stringtemplate.jar:/usr/share/stringtemplate/lib/stringtemplate.jar:/usr/share/antlr/lib/antlr.jar' 'org.antlr.test.TestASTConstruction' 'org.antlr.test.TestAttributes' 'org.antlr.test.TestAutoAST' 'org.antlr.test.TestBufferedTreeNodeStream' 'org.antlr.test.TestCharDFAConversion' 'org.antlr.test.TestCommonTokenStream' 'org.antlr.test.TestCompositeGrammars' 'org.antlr.test.TestDFAMatching' 'org.antlr.test.TestFastQueue' 'org.antlr.test.TestHeteroAST' 'org.antlr.test.TestInterpretedLexing' 'org.antlr.test.TestInterpretedParsing' 'org.antlr.test.TestIntervalSet' 'org.antlr.test.TestJavaCodeGeneration' 'org.antlr.test.TestLeftRecursion' 'org.antlr.test.TestLexer' 'org.antlr.test.TestMessages' 'org.antlr.test.TestNFAConstruction' 'org.antlr.test.TestRewriteAST' 'org.antlr.test.TestRewriteTemplates' 'org.antlr.test.TestSemanticPredicateEvaluation' 'org.antlr.test.TestSets' 'org.antlr.test.TestSymbolDefinitions' 'org.antlr.test.TestSyntacticPredicateEvaluation' 'org.antlr.test.TestSyntaxErrors' 'org.antlr.test.TestTemplates' 'org.antlr.test.TestTokenRewriteStream' 'org.antlr.test.TestTreeGrammarRewriteAST' 'org.antlr.test.TestTreeIterator' 'org.antlr.test.TestTreeNodeStream' 'org.antlr.test.TestTreeParsing' 'org.antlr.test.TestTreeWizard' 'org.antlr.test.TestTrees' * environment, line 681: Called die * The specific snippet of code: * java "${args[@]}" || die "Running junit failed" * * If you need support, post the output of `emerge --info '=dev-java/antlr-tool-3.5.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/antlr-tool-3.5.3::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-tool-3.5.3 * The complete build log is located at '/var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/antlr-tool-3.5.3/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/antlr-tool-3.5.3/work' * S: '/var/tmp/portage/dev-java/antlr-tool-3.5.3/work'