Failed

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

Failing for the past 12 builds (Since Failed#81 )
Took 1.2 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.compiler.regression.NullAnnotationTest.testBug452780(NullAnnotationTest.java:7989)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest#testBug452780 - 10
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/genie.jdt/comptest/run.1563681874199/10.0.1_20190721_000442.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

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