Failed

org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest.test297 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#9 )
Took 0.62 sec.

Error Message

test297 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in A.java (at line 10)\n
 public final Object build(Class<? super Object>... objects) {\n
                                                    ^^^^^^^\n
Type safety: Potential heap pollution via varargs parameter objects\n
----------\n
2. ERROR in A.java (at line 15)\n
 return i == i;\n
        ^^^^^^\n
Comparing identical expressions\n
----------\n

------------ but was ------------
A.java:10: warning: [unchecked] Possible heap pollution from parameterized vararg type Class<? super Object>\n
 public final Object build(Class<? super Object>... objects) {\n
                                                    ^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in A.java (at line 10)\n
 public final Object build(Class<? super Object>... objects) {\n
                                                    ^^^^^^^\n
Type safety: Potential heap pollution via varargs parameter objects\n
----------\n
2. ERROR in A.java (at line 15)\n
 return i == i;\n
        ^^^^^^\n
Comparing identical expressions\n
----------]\n
> but was:<[A.java:10: warning: [unchecked] Possible heap pollution from parameterized vararg type Class<? super Object>\n
 public final Object build(Class<? super Object>... objects) {\n
                                                    ^\n
1 warning]\n
>

Stacktrace

junit.framework.ComparisonFailure: test297 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in A.java (at line 10)\n
	public final Object build(Class<? super Object>... objects) {\n
	                                                   ^^^^^^^\n
Type safety: Potential heap pollution via varargs parameter objects\n
----------\n
2. ERROR in A.java (at line 15)\n
	return i == i;\n
	       ^^^^^^\n
Comparing identical expressions\n
----------\n

------------ but was ------------
A.java:10: warning: [unchecked] Possible heap pollution from parameterized vararg type Class<? super Object>\n
	public final Object build(Class<? super Object>... objects) {\n
	                                                   ^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in A.java (at line 10)\n
	public final Object build(Class<? super Object>... objects) {\n
	                                                   ^^^^^^^\n
Type safety: Potential heap pollution via varargs parameter objects\n
----------\n
2. ERROR in A.java (at line 15)\n
	return i == i;\n
	       ^^^^^^\n
Comparing identical expressions\n
----------]\n
> but was:<[A.java:10: warning: [unchecked] Possible heap pollution from parameterized vararg type Class<? super Object>\n
	public final Object build(Class<? super Object>... objects) {\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:2048)
	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.runNegativeTest(AbstractRegressionTest.java:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest.test297(AnnotationTest.java:9902)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest#test297 - 1.8
A.java [
public class A {
	public void one() {
		@SuppressWarnings("unused")
		Object object = new Object();
	}
	public void two() {
		@SuppressWarnings({ "unchecked", "unused" })
		Object object = build();
	}
	public final Object build(Class<? super Object>... objects) {
		return null;
	}
	public boolean bar() {
		int i = 0;
		return i == i;
	}
}
]


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

Standard Error

--- javac err: ---
A.java:10: warning: [unchecked] Possible heap pollution from parameterized vararg type Class<? super Object>
	public final Object build(Class<? super Object>... objects) {
	                                                   ^
1 warning

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