Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testDefault04_bin - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed #44 )
Took 2.1 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in Y.java (at line 3)\n
 x.field = null; // ERR\n
           ^^^^\n
Null type mismatch: required '@NonNull Number' but the provided value is null\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Y.java (at line 3)\n
 x.field = null; // ERR\n
           ^^^^\n
Null type mismatch: required '@NonNull Number' but the provided value is null\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in Y.java (at line 3)\n
	x.field = null; // ERR\n
	          ^^^^\n
Null type mismatch: required '@NonNull Number' but the provided value is null\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Y.java (at line 3)\n
	x.field = null; // ERR\n
	          ^^^^\n
Null type mismatch: required '@NonNull Number' but the provided value is null\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testDefault04_bin(NullTypeAnnotationTest.java:5292)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest#testDefault04_bin - 12
Y.java [
public class Y {
	void test(X x) {
		x.field = null; // ERR
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.txt

Standard Error

--- javac err: ---
Note: X.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

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