test/tools/javac/processing/6994946/SemanticErrorTest.java

Thu, 21 Feb 2013 15:26:46 +0000

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 1466
b52a38d4536c
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg

jjg@726 1 /*
jjg@726 2 * @test /nodynamiccopyright/
jjg@726 3 * @bug 6994946
jjg@726 4 * @summary option to specify only syntax errors as unrecoverable
darcy@1466 5 * @library /tools/javac/lib
jjg@726 6 * @build JavacTestingAbstractProcessor TestProcessor
jjg@726 7 * @compile/fail/ref=SemanticErrorTest.1.out -XDrawDiagnostics -processor TestProcessor SemanticErrorTest.java
jjg@726 8 * @compile/fail/ref=SemanticErrorTest.2.out -XDrawDiagnostics -XDonlySyntaxErrorsUnrecoverable -processor TestProcessor SemanticErrorTest.java
jjg@726 9 */
jjg@726 10
jjg@726 11 class SemanticErrorTest implements Runnable, Runnable {
jjg@726 12 public void run() { }
jjg@726 13 }

mercurial