Failed
org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest.test172 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test172 - Javac found error(s) but Eclipse did not find any. ----------- Expected ------------ ------------ 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:<[]> 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 did not find any. ----------- Expected ------------ ------------ 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:<[]> 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:6895)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.InnerEmulationTest#test172 - 12 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 /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.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 ----------------------------------------