Failed

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTestAsserts.testBug382069e - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

testBug382069e - Eclipse found error(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. ERROR in X.java (at line 11)\n
 x.foo(null, null, null); // definite NPE\n
 ^\n
Null pointer access: The variable x can only be null at this location\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 11)\n
 x.foo(null, null, null); // definite NPE\n
 ^\n
Null pointer access: The variable x can only be null at this location\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 11)\n
	x.foo(null, null, null); // definite NPE\n
	^\n
Null pointer access: The variable x can only be null at this location\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 11)\n
	x.foo(null, null, null); // definite NPE\n
	^\n
Null pointer access: The variable x can only be null at this location\n
----------\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:2044)
	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:2113)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2102)
	at org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTestAsserts.testBug382069e(NullReferenceTestAsserts.java:940)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTestAsserts#testBug382069e - 1.8
org/apache/commons/lang3/Validate.java [
package org.apache.commons.lang3;
public class Validate {
    static public <T> T notNull(T object) { return object; }
    static public <T> T notNull(T object, String message, Object... values) { return object; }
    static public void isTrue(boolean expression) {}
    static public void isTrue(boolean expression, String message, double value) {}
    static public void isTrue(boolean expression, String message, long value) {}
    static public void isTrue(boolean expression, String message, Object value) {}
}

]
X.java [
import org.apache.commons.lang3.Validate;
public class X {
  void foo(Object o1, String o2, X x) {
    boolean b = o1 != null;
    Validate.notNull(o1);
    o1.toString();
    b = o2 != null;
    Validate.notNull(o2, "msg");
    o2.toString();
    Validate.isTrue(x == null, "ups", x);
    x.foo(null, null, null); // definite NPE
  }
}

]


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

Standard Error

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