Failed
org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.testBug514956c - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
testBug514956c - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in Unlikely.java (at line 6)\n return i1.equals((I1)this);\n ^^^^^^^^\n Unnecessary cast from Unlikely to I1\n ----------\n 2. ERROR in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unnecessary cast from I2 to I3\n ----------\n 3. WARNING in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unlikely argument type for equals(): I3 seems to be unrelated to I1\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in Unlikely.java (at line 6)\n return i1.equals((I1)this);\n ^^^^^^^^\n Unnecessary cast from Unlikely to I1\n ----------\n 2. ERROR in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unnecessary cast from I2 to I3\n ----------\n 3. WARNING in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unlikely argument type for equals(): I3 seems to be unrelated to I1\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: testBug514956c - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in Unlikely.java (at line 6)\n return i1.equals((I1)this);\n ^^^^^^^^\n Unnecessary cast from Unlikely to I1\n ----------\n 2. ERROR in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unnecessary cast from I2 to I3\n ----------\n 3. WARNING in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unlikely argument type for equals(): I3 seems to be unrelated to I1\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in Unlikely.java (at line 6)\n return i1.equals((I1)this);\n ^^^^^^^^\n Unnecessary cast from Unlikely to I1\n ----------\n 2. ERROR in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unnecessary cast from I2 to I3\n ----------\n 3. WARNING in Unlikely.java (at line 9)\n return i1.equals((I3)i2);\n ^^^^^^\n Unlikely argument type for equals(): I3 seems to be unrelated to I1\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.testBug514956c(ProgrammingProblemsTest.java:3268)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest#testBug514956c - 1.8 Unlikely.java [ interface I1 {} interface I2 {} interface I3 {} public class Unlikely implements I1 { boolean m1(I1 i1) { return i1.equals((I1)this); } boolean m2(I1 i1, I2 i2) { return i1.equals((I3)i2); } } ] 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
----------------------------------------