Failed

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testDefault05_custom - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 11 builds (Since #81 )
Took 0.82 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in test\X.java (at line 3)\n
 Number field; // ERR since uninitialized\n
        ^^^^^\n
The @NonNull field field may not have been initialized\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in test\X.java (at line 3)\n
 Number field; // ERR since uninitialized\n
        ^^^^^\n
The @NonNull field field may not have been initialized\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in test\X.java (at line 3)\n
	Number field; // ERR since uninitialized\n
	       ^^^^^\n
The @NonNull field field may not have been initialized\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in test\X.java (at line 3)\n
	Number field; // ERR since uninitialized\n
	       ^^^^^\n
The @NonNull field field may not have been initialized\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testDefault05_custom(NullTypeAnnotationTest.java:4971)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest#testDefault05_custom - 10
org/foo/Nullable.java [
package org.foo;
import static java.lang.annotation.ElementType.*;
import java.lang.annotation.*;
@Retention(RetentionPolicy.CLASS)
@Target({METHOD,PARAMETER,LOCAL_VARIABLE})
public @interface Nullable {
}

]
org/foo/NonNull.java [
package org.foo;
import static java.lang.annotation.ElementType.*;
import java.lang.annotation.*;
@Retention(RetentionPolicy.CLASS)
@Target({METHOD,PARAMETER,LOCAL_VARIABLE})
public @interface NonNull {
}

]
org/foo/NonNullByDefault.java [
package org.foo;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
@Retention(RetentionPolicy.CLASS)
@Target({PACKAGE, TYPE, METHOD, CONSTRUCTOR })
public @interface NonNullByDefault {
}

]
test/package-info.java [
@org.foo.NonNullByDefault
package test;

]
test/X.java [
package test;
public class X {
	Number field; // ERR since uninitialized
	void test1(Number[] ns) {
		ns[0] = null; // OK since not affected by default
	}
	void test2(java.lang.Number[] ns) {
		ns[0] = null; // OK since not affected by default
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1563077023750/10.0.1_20190714_000352.txt

Standard Error

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