Failed

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test329588 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

test329588 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
./A.java:2: error: type O does not take parameters\n
 public O<?> foo() {\n
         ^\n
X.java:3: warning: [cast] redundant cast to <any>\n
  O o = (O) a.foo();\n
        ^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[./A.java:2: error: type O does not take parameters\n
 public O<?> foo() {\n
         ^\n
X.java:3: warning: [cast] redundant cast to <any>\n
  O o = (O) a.foo();\n
        ^\n
1 error\n
1 warning\n
]>

Stacktrace

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

------------ but was ------------
./A.java:2: error: type O does not take parameters\n
	public O<?> foo() {\n
	        ^\n
X.java:3: warning: [cast] redundant cast to <any>\n
		O o = (O) a.foo();\n
		      ^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[./A.java:2: error: type O does not take parameters\n
	public O<?> foo() {\n
	        ^\n
X.java:3: warning: [cast] redundant cast to <any>\n
		O o = (O) a.foo();\n
		      ^\n
1 error\n
1 warning\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:2052)
	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.runConformTest(AbstractRegressionTest.java:1521)
	at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test329588(MethodVerifyTest.java:12167)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test329588 - 1.8
X.java [
public class X {
	public void foo(A a) {
		O o = (O) a.foo();
		System.out.println(o);
	}
}
]
O.java [
public class O {}

]


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

Standard Error

--- javac err: ---
./A.java:2: error: type O does not take parameters
	public O<?> foo() {
	        ^
X.java:3: warning: [cast] redundant cast to <any>
		O o = (O) a.foo();
		      ^
1 error
1 warning

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