Failed

org.eclipse.jdt.core.tests.compiler.regression.CastTest.test049 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#9 )
Took 0.86 sec.

Error Message

test049 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in A.java (at line 3)\n
 Other<?>.Member m = (Other<?>.Member) om2;\n
                     ^^^^^^^^^^^^^^^^^^^^^\n
Unnecessary cast from Other2<?>.Member2<capture#1-of ?> to Other<?>.Member\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in A.java (at line 3)\n
 Other<?>.Member m = (Other<?>.Member) om2;\n
                     ^^^^^^^^^^^^^^^^^^^^^\n
Unnecessary cast from Other2<?>.Member2<capture#1-of ?> to Other<?>.Member\n
----------\n
]>

Stacktrace

junit.framework.ComparisonFailure: test049 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in A.java (at line 3)\n
	Other<?>.Member m = (Other<?>.Member) om2;\n
	                    ^^^^^^^^^^^^^^^^^^^^^\n
Unnecessary cast from Other2<?>.Member2<capture#1-of ?> to Other<?>.Member\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in A.java (at line 3)\n
	Other<?>.Member m = (Other<?>.Member) om2;\n
	                    ^^^^^^^^^^^^^^^^^^^^^\n
Unnecessary cast from Other2<?>.Member2<capture#1-of ?> to Other<?>.Member\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:2060)
	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:2113)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2102)
	at org.eclipse.jdt.core.tests.compiler.regression.CastTest.test049(CastTest.java:1828)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.CastTest#test049 - 1.8
A.java [
public class A {
	void foo(Other2<?>.Member2<?> om2) {
		Other<?>.Member m = (Other<?>.Member) om2;
		m = om2;
	}
}
class Other<T> {
	class Member {}
}
class Other2<T> extends Other<T> {
	class Member2<U> extends Other<U>.Member {
	}
}

]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

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