Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test442929 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 51 builds (Since #64 )
Took 0.84 sec.

Error Message

test442929 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
Expected CCE
------------ but was ------------

--------- Difference is ----------
 expected:<[Expected CCE]> but was:<[]>

Stacktrace

junit.framework.ComparisonFailure: 
test442929 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
Expected CCE
------------ but was ------------

--------- Difference is ----------
 expected:<[Expected CCE]> but was:<[]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test442929(GenericsRegressionTest_1_7.java:2715)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test442929 - 1.8
X.java [
public class X {
	public static void main(String[] args) {
		shouldNotThrow();
	}
	static void shouldNotThrow() {
		final String[] array = { "" };
		final String[] expected = { "" };
		// throws
       try {
		    assertThat(op(array, "")).isEqualTo(expected);
       } catch (ClassCastException c) {
           System.out.println("Expected CCE");
       }
	}
	static <T> T[] op(T[] array, T element) {
		return asArray(element);
	}
	@SafeVarargs
	static <T> T[] asArray(T... elements) {
		return elements;
	}
	static <T> ObjectArrayAssert<T> assertThat(T actual) {
		return new ObjectArrayAssert<>(actual);
	}
	static class ObjectArrayAssert<T> {
		ObjectArrayAssert(T actual) {
		}
		void isEqualTo(T expected) {
		}
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1566619421654/1.8.0_162_20190824_000350.txt

Standard Error

--- javac err: ---
X.java:20: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter elements
		return elements;
		       ^
1 warning

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