Failed

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

Failing for the past 16 builds (Since #81 )
Took 0.75 sec.

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 - 10
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.1566100984719/10.0.1_20190818_000313.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

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