Failed
org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5.test012 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test012 - Eclipse/Javac standard output mismatch. ----------- Expected ------------ *** FIELD ACCESS ****1* new Updated().bar: Updated.bar*2* new Updated().foo: Updated.foo*3* new Y().foo: Updated.foo*4* new Y().bar: Updated.bar*5* bar: Updated.bar*6* foo: Updated.foo*7* Y.bar: Updated.bar*8* this.bar: Updated.bar*9* this.foo: Updated.foo*10* store.value: Updated.store*11* sstore.value: Updated.sstore*12* ss.sstore.value: Top.sstore ------------ but was ------------ *** FIELD ACCESS ****1* new Updated().bar: Updated.bar*2* new Updated().foo: Updated.foo*3* new Y().foo: Updated.foo*4* new Y().bar: Updated.bar*5* bar: Updated.bar*6* foo: Updated.foo*7* Y.bar: Updated.bar*8* this.bar: Updated.bar*9* this.foo: Updated.foo*10* store.value: Updated.store*11* sstore.value: Updated.sstore*12* ss.sstore.value: Updated.sstore --------- Difference is ---------- expected:<...2* ss.sstore.value: [Top].sstore> but was:<...2* ss.sstore.value: [Updated].sstore>
Stacktrace
junit.framework.ComparisonFailure: test012 - Eclipse/Javac standard output mismatch. ----------- Expected ------------ *** FIELD ACCESS ****1* new Updated().bar: Updated.bar*2* new Updated().foo: Updated.foo*3* new Y().foo: Updated.foo*4* new Y().bar: Updated.bar*5* bar: Updated.bar*6* foo: Updated.foo*7* Y.bar: Updated.bar*8* this.bar: Updated.bar*9* this.foo: Updated.foo*10* store.value: Updated.store*11* sstore.value: Updated.sstore*12* ss.sstore.value: Top.sstore ------------ but was ------------ *** FIELD ACCESS ****1* new Updated().bar: Updated.bar*2* new Updated().foo: Updated.foo*3* new Y().foo: Updated.foo*4* new Y().bar: Updated.bar*5* bar: Updated.bar*6* foo: Updated.foo*7* Y.bar: Updated.bar*8* this.bar: Updated.bar*9* this.foo: Updated.foo*10* store.value: Updated.store*11* sstore.value: Updated.sstore*12* ss.sstore.value: Updated.sstore --------- Difference is ---------- expected:<...2* ss.sstore.value: [Top].sstore> but was:<...2* ss.sstore.value: [Updated].sstore> 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:2068) 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.test012(Compliance_1_5.java:208)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5#test012 - 1.8 p1/Updated.java [ package p1; public class Updated extends Top { public static void main(String[] arguments) { Y.main(arguments); } static String bar = "Updated.bar"; String foo = "Updated.foo"; Store store = new Store("Updated.store"); static Store sstore = new Store("Updated.sstore"); static Updated ss = new Updated(); } ] Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt
Standard Error
--- javac err: --- p1/Updated.java:2: warning: auxiliary class Top in p1/Y.java should not be accessed from outside its own source file public class Updated extends Top { ^ p1/Y.java:21: warning: [static] static variable should be qualified by type name, Top, instead of by an expression System.out.print("*1* new Updated().bar: " + new Updated().bar); ^ p1/Y.java:24: warning: [static] static variable should be qualified by type name, Top, instead of by an expression System.out.print("*4* new Y().bar: " + new Y().bar); ^ p1/Y.java:28: warning: [static] static variable should be qualified by type name, Top, instead of by an expression System.out.print("*8* this.bar: " + this.bar); ^ p1/Y.java:32: warning: [static] static variable should be qualified by type name, Top, instead of by an expression System.out.print("*12* ss.sstore.value: " + ss.sstore.value); ^ 5 warnings --- javac err: --- p1/Updated.java:2: warning: auxiliary class Top in Y.java should not be accessed from outside its own source file public class Updated extends Top { ^ p1/Updated.java:8: warning: auxiliary class Store in Y.java should not be accessed from outside its own source file Store store = new Store("Updated.store"); ^ p1/Updated.java:9: warning: auxiliary class Store in Y.java should not be accessed from outside its own source file static Store sstore = new Store("Updated.sstore"); ^ p1/Updated.java:8: warning: auxiliary class Store in ./p1/Y.java should not be accessed from outside its own source file Store store = new Store("Updated.store"); ^ p1/Updated.java:9: warning: auxiliary class Store in ./p1/Y.java should not be accessed from outside its own source file static Store sstore = new Store("Updated.sstore"); ^ ./p1/Y.java:21: warning: [static] static variable should be qualified by type name, Updated, instead of by an expression System.out.print("*1* new Updated().bar: " + new Updated().bar); ^ ./p1/Y.java:24: warning: [static] static variable should be qualified by type name, Updated, instead of by an expression System.out.print("*4* new Y().bar: " + new Y().bar); ^ ./p1/Y.java:28: warning: [static] static variable should be qualified by type name, Updated, instead of by an expression System.out.print("*8* this.bar: " + this.bar); ^ ./p1/Y.java:32: warning: [static] static variable should be qualified by type name, Updated, instead of by an expression System.out.print("*12* ss.sstore.value: " + ss.sstore.value); ^ 9 warnings ----------------------------------------