Failed
org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest.test074 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test074 - Javac found error(s) but Eclipse did not find any. ----------- Expected ------------ ------------ but was ------------ test/Outer.java:4: error: cannot find symbol\n int i = VALUE;\n ^\n symbol: variable VALUE\n location: class Outer\n 1 error\n --------- Difference is ---------- expected:<[]> but was:<[test/Outer.java:4: error: cannot find symbol\n int i = VALUE;\n ^\n symbol: variable VALUE\n location: class Outer\n 1 error\n ]>
Stacktrace
junit.framework.ComparisonFailure: test074 - Javac found error(s) but Eclipse did not find any. ----------- Expected ------------ ------------ but was ------------ test/Outer.java:4: error: cannot find symbol\n int i = VALUE;\n ^\n symbol: variable VALUE\n location: class Outer\n 1 error\n --------- Difference is ---------- expected:<[]> but was:<[test/Outer.java:4: error: cannot find symbol\n int i = VALUE;\n ^\n symbol: variable VALUE\n location: class Outer\n 1 error\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:1396) at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:1393) at org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest.test074(StaticImportTest.java:2535)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest#test074 - 1.8 test/Outer.java [ package test; import static test.Outer.Inner.*; public class Outer { int i = VALUE; int i2 = Inner.VALUE; static class Inner { private static final int VALUE = 0; } } ] Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt
Standard Error
--- javac err: --- test/Outer.java:4: error: cannot find symbol int i = VALUE; ^ symbol: variable VALUE location: class Outer 1 error ----------------------------------------