Regression

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#126 )
Took 0.7 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.compiler.regression.MethodVerifyTest.test329588(MethodVerifyTest.java:12170)

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.1571178455919/1.8.0_202_20191015_222736.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

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