Failed
org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest.test172 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Failing for the past 1 build
(Since Failed
)
Error Message
test172 - Javac found error(s) but Eclipse only found warning(s). ----------- Expected ------------ ----------\n 1. WARNING in X.java (at line 8)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 2. WARNING in X.java (at line 9)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n 3. WARNING in X.java (at line 14)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 4. WARNING in X.java (at line 15)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n ------------ but was ------------ X.java:8: error: method a in class X cannot be applied to given types;\n a(null);\n ^\n required: no arguments\n found: <null>\n reason: actual and formal argument lists differ in length\n 1 error\n --------- Difference is ---------- expected:<[----------\n 1. WARNING in X.java (at line 8)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 2. WARNING in X.java (at line 9)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n 3. WARNING in X.java (at line 14)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 4. WARNING in X.java (at line 15)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------]\n > but was:<[X.java:8: error: method a in class X cannot be applied to given types;\n a(null);\n ^\n required: no arguments\n found: <null>\n reason: actual and formal argument lists differ in length\n 1 error]\n >
Stacktrace
junit.framework.ComparisonFailure: test172 - Javac found error(s) but Eclipse only found warning(s). ----------- Expected ------------ ----------\n 1. WARNING in X.java (at line 8)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 2. WARNING in X.java (at line 9)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n 3. WARNING in X.java (at line 14)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 4. WARNING in X.java (at line 15)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n ------------ but was ------------ X.java:8: error: method a in class X cannot be applied to given types;\n a(null);\n ^\n required: no arguments\n found: <null>\n reason: actual and formal argument lists differ in length\n 1 error\n --------- Difference is ---------- expected:<[----------\n 1. WARNING in X.java (at line 8)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 2. WARNING in X.java (at line 9)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------\n 3. WARNING in X.java (at line 14)\n a(null);\n ^^^^^^^\n Access to enclosing method a(String) from the type X is emulated by a synthetic accessor method\n ----------\n 4. WARNING in X.java (at line 15)\n c(null);\n ^^^^^^^\n Access to enclosing method c(String) from the type X is emulated by a synthetic accessor method\n ----------]\n > but was:<[X.java:8: error: method a in class X cannot be applied to given types;\n a(null);\n ^\n required: no arguments\n found: <null>\n reason: actual and formal argument lists differ in length\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:2056) 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.runNegativeTest(AbstractRegressionTest.java:2113) at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2102) at org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest.test172(InnerEmulationTest.java:6799)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest#test172 - 1.8 X.java [ public class X { void a() {} private static void a(String s) {} private void c() {} private static void c(String s) {} static class M1 extends X { public void x() { a(null); c(null); } } static class M2 { public void x() { a(null); c(null); } } } ] Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt
Standard Error
--- javac err: --- X.java:8: error: method a in class X cannot be applied to given types; a(null); ^ required: no arguments found: <null> reason: actual and formal argument lists differ in length 1 error ----------------------------------------