Failed

org.eclipse.jdt.core.tests.compiler.regression.ConditionalExpressionTest.test427625 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 10 builds (Since Failed#44 )
Took 0.99 sec.

Error Message

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

------------ but was ------------
X.java:6: warning: [deprecation] Integer(int) in Integer has been deprecated\n
  c.add(b ? new Integer(1)\n
            ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:6: warning: [deprecation] Integer(int) in Integer has been deprecated\n
  c.add(b ? new Integer(1)\n
            ^\n
1 warning\n
]>

Stacktrace

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

------------ but was ------------
X.java:6: warning: [deprecation] Integer(int) in Integer has been deprecated\n
		c.add(b ? new Integer(1)\n
		          ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:6: warning: [deprecation] Integer(int) in Integer has been deprecated\n
		c.add(b ? new Integer(1)\n
		          ^\n
1 warning\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.ConditionalExpressionTest.test427625(ConditionalExpressionTest.java:529)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ConditionalExpressionTest#test427625 - 12
X.java [
import java.util.Collection;
import java.util.List;
public class X {
	public void error(Collection<Object> c) {
		boolean b  =true;
		c.add(b ? new Integer(1)
		        : c==null ? null 
				  : c instanceof List ? Integer.valueOf(1) 
				                      : o()); 
	}
	public Object o() {
		return null;
	}
}

]


Full results sent to /tmp/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

--- javac err: ---
X.java:6: warning: [deprecation] Integer(int) in Integer has been deprecated
		c.add(b ? new Integer(1)
		          ^
1 warning

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