Regression

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#114 )
Took 1.3 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.compiler.regression.Compliance_1_5.test070(Compliance_1_5.java:2425)

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/genie.jdt/comptest/run.1566619421654/1.8.0_162_20190824_000350.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

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