Failed

org.eclipse.jdt.core.tests.compiler.regression.JEP286Test.testBug532349_003 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 11 builds (Since Failed#81 )
Took 0.84 sec.

Error Message

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

------------ but was ------------
X.java:2: error: type argument ? extends I is not within bounds of type-variable T\n
 public static void foo(Y<? extends I> 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:2: error: type argument ? extends I is not within bounds of type-variable T\n
 public static void foo(Y<? extends I> 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_003 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:2: error: type argument ? extends I is not within bounds of type-variable T\n
	public static void foo(Y<? extends I> 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:2: error: type argument ? extends I is not within bounds of type-variable T\n
	public static void foo(Y<? extends I> 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_003(JEP286Test.java:887)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.JEP286Test#testBug532349_003 - 10
X.java [
class X {
	public static void foo(Y<? extends I> y) {
		var v = y.t;
		Integer dsbType0 = v;
		I i = v;
	}
}
interface I { }
class Y<T extends Integer> {
	public T t;
}
]


Full results sent to /tmp/genie.jdt/comptest/run.1563077023750/10.0.1_20190714_000352.txt

Standard Error

--- javac err: ---
X.java:2: error: type argument ? extends I is not within bounds of type-variable T
	public static void foo(Y<? extends I> y) {
	                         ^
  where T is a type-variable:
    T extends Integer declared in class Y
1 error

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