Failed
org.eclipse.jdt.core.tests.compiler.regression.JEP286Test.testBug532349_002 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Failing for the past 1 build
(Since Failed
)
Error Message
testBug532349_002 - Javac found error(s) but Eclipse did not find any. ----------- Expected ------------ ------------ but was ------------ X.java:3: error: type argument ? extends I is not within bounds of type-variable T\n Y<? extends I> y = new Y<>();\n ^\n where T is a type-variable:\n T extends Integer declared in class Y\n 1 error\n --------- Difference is ---------- expected:<[]> but was:<[X.java:3: error: type argument ? extends I is not within bounds of type-variable T\n Y<? extends I> y = new Y<>();\n ^\n where T is a type-variable:\n T extends Integer declared in class Y\n 1 error\n ]>
Stacktrace
junit.framework.ComparisonFailure: testBug532349_002 - Javac found error(s) but Eclipse did not find any. ----------- Expected ------------ ------------ but was ------------ X.java:3: error: type argument ? extends I is not within bounds of type-variable T\n Y<? extends I> y = new Y<>();\n ^\n where T is a type-variable:\n T extends Integer declared in class Y\n 1 error\n --------- Difference is ---------- expected:<[]> but was:<[X.java:3: error: type argument ? extends I is not within bounds of type-variable T\n Y<? extends I> y = new Y<>();\n ^\n where T is a type-variable:\n T extends Integer declared in class Y\n 1 error\n ]> at org.eclipse.jdt.core.tests.compiler.regression.JEP286Test.testBug532349_002(JEP286Test.java:870)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.JEP286Test#testBug532349_002 - 12 X.java [ class X { public static void foo() { Y<? extends I> y = new Y<>(); var v = y.t; Integer dsbType0 = v; } } interface I { } class Y<T extends Integer> { public T t; } ] Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.txt
Standard Error
--- javac err: --- X.java:3: error: type argument ? extends I is not within bounds of type-variable T Y<? extends I> y = new Y<>(); ^ where T is a type-variable: T extends Integer declared in class Y 1 error ----------------------------------------