Failed

org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.testBug514956c - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 10 builds (Since Failed#44 )
Took 0.83 sec.

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 - 12
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 /tmp/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

----------------------------------------