Failed

org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5.test070 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#9 )
Took 1.4 sec.

Error Message

test070 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
Middle.java:1: warning: auxiliary class Top in X.java should not be accessed from outside its own source file\n
public class Middle extends Top {\n
                            ^\n
./X.java:6: error: duplicate class: Middle\n
class Middle extends Top {\n
^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[Middle.java:1: warning: auxiliary class Top in X.java should not be accessed from outside its own source file\n
public class Middle extends Top {\n
                            ^\n
./X.java:6: error: duplicate class: Middle\n
class Middle extends Top {\n
^\n
1 error\n
1 warning\n
]>

Stacktrace

junit.framework.ComparisonFailure: test070 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
Middle.java:1: warning: auxiliary class Top in X.java should not be accessed from outside its own source file\n
public class Middle extends Top {\n
                            ^\n
./X.java:6: error: duplicate class: Middle\n
class Middle extends Top {\n
^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[Middle.java:1: warning: auxiliary class Top in X.java should not be accessed from outside its own source file\n
public class Middle extends Top {\n
                            ^\n
./X.java:6: error: duplicate class: Middle\n
class Middle extends Top {\n
^\n
1 error\n
1 warning\n
]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2052)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:1491)
	at org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5.test070(Compliance_1_5.java:2381)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5#test070 - 1.8
Middle.java [
public class Middle extends Top {
	public static void main(String[] arguments) { 
		X.main(arguments);	
	}	
	String field = "Middle.field";
}

]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

--- javac err: ---
Middle.java:1: warning: auxiliary class Top in X.java should not be accessed from outside its own source file
public class Middle extends Top {
                            ^
./X.java:6: error: duplicate class: Middle
class Middle extends Top {
^
1 error
1 warning

----------------------------------------