Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v retrieving revision 1.16 diff -u -r1.16 BatchCompilerTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 26 May 2005 19:43:04 -0000 1.16 +++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 31 May 2005 15:28:24 -0000 @@ -1562,6 +1562,73 @@ "incorrect classpath: dummy\n", false); } +// Extraneous auto-build error message - https://bugs.eclipse.org/bugs/show_bug.cgi?id=93377 +public void _test030(){ + // first series shows that a clean build is OK + this.runConformTest( + new String[] { + "X.java", + "public interface X, \n" + + " K extends X.K, \n" + + " S extends X.S> {\n" + + " public interface K, \n" + + " KS extends X.S> {\n" + + " }\n" + + " public interface S {\n" + + " }\n" + + "}\n", + "Y.java", + "public class Y, \n" + + " K extends X.K, \n" + + " S extends X.S> { \n" + + "}\n", + }, + "\"" + OUTPUT_DIR + File.separator + "Y.java\"" + + " -1.5 -g -preserveAllLocals" + + " -cp \"" + OUTPUT_DIR + File.separator + "\"" + + " -proceedOnError -referenceInfo" + + " -d \"" + OUTPUT_DIR + "\"", + "", + "", + true); + // second series shows that a staged build - that simulates the auto build context - is KO + this.runConformTest( + new String[] { + "X.java", + "public interface X, \n" + + " K extends X.K, \n" + + " S extends X.S> {\n" + + " public interface K, \n" + + " KS extends X.S> {\n" + + " }\n" + + " public interface S {\n" + + " }\n" + + "}\n", + }, + "\"" + OUTPUT_DIR + File.separator + "X.java\"" + + " -1.5 -g -preserveAllLocals" + + " -proceedOnError -referenceInfo" + + " -d \"" + OUTPUT_DIR + "\"", + "", + "", + true); + this.runConformTest( + new String[] { + "Y.java", + "public class Y, \n" + + " K extends X.K, \n" + + " S extends X.S> { \n" + + "}\n", + }, + "\"" + OUTPUT_DIR + File.separator + "Y.java\"" + + " -1.5 -g -preserveAllLocals" + + " -cp \"" + OUTPUT_DIR + File.separator + "\"" + + " -proceedOnError -referenceInfo" + + " -d \"" + OUTPUT_DIR + "\"", + "", + "", + false); +} public static Class testClass() { return BatchCompilerTest.class; }