Skip to content

Failed

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

Failing for the past 4 builds (Since #6 )
Took 0.59 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.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:2044)
	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:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.ProgrammingProblemsTest.testBug514956c(ProgrammingProblemsTest.java:3265)

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 /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

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