Failed
org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest.test172 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
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.compiler.regression.InnerEmulationTest.test172(InnerEmulationTest.java:6870)
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); } } public static void main(String[] args) { } } ] Full results sent to /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1584479137560/1.8.0_202_20200317_210541.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 ----------------------------------------