Failed

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug452780 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 4 builds (Since #6 )
Took 0.74 sec.

Error Message

testBug452780 - Javac found warning(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
Tools2.java:12: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter ts\n
  List<@NonNull T> res = Arrays.asList(ts);\n
                                       ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[Tools2.java:12: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter ts\n
  List<@NonNull T> res = Arrays.asList(ts);\n
                                       ^\n
1 warning\n
]>

Stacktrace

junit.framework.ComparisonFailure: testBug452780 - Javac found warning(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
Tools2.java:12: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter ts\n
		List<@NonNull T> res = Arrays.asList(ts);\n
		                                     ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[Tools2.java:12: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter ts\n
		List<@NonNull T> res = Arrays.asList(ts);\n
		                                     ^\n
1 warning\n
]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2064)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:3028)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractNullAnnotationTest.runConformTestWithLibs(AbstractNullAnnotationTest.java:183)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractNullAnnotationTest.runConformTestWithLibs(AbstractNullAnnotationTest.java:165)
	at org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug452780(NullAnnotationTest.java:7915)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest#testBug452780 - 1.8
Tools2.java [
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import org.eclipse.jdt.annotation.NonNull;
public class Tools2 {
	@SafeVarargs
	public static <T> List<@NonNull T> asList(T... ts) {
		@SuppressWarnings("null")
		@NonNull
		List<@NonNull T> res = Arrays.asList(ts);
		return res;
	}
	@SuppressWarnings("null")
	public static <T> Collector<@NonNull T, @NonNull ?, @NonNull Set<@NonNull T>> toSet() {
		@NonNull
		Collector<@NonNull T, ?, @NonNull Set<@NonNull T>> res = Collectors
				.toSet();
		return res;
	}
}
]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

--- javac err: ---
Tools2.java:12: warning: [varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter ts
		List<@NonNull T> res = Arrays.asList(ts);
		                                     ^
1 warning

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