Failed

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug481931_binary - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#114 )
Took 1.4 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in Y.java (at line 5)\n
 if (x.INST_CONST == null) {\n
       ^^^^^^^^^^\n
Null comparison always yields false: The field INST_CONST is a nonnull constant\n
----------\n
2. WARNING in Y.java (at line 5)\n
 if (x.INST_CONST == null) {\n
   System.out.println("null");\n
  }\n
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. ERROR in Y.java (at line 11)\n
 if (X.CONST == null) {\n
       ^^^^^\n
Null comparison always yields false: The field CONST is a nonnull constant\n
----------\n
4. WARNING in Y.java (at line 11)\n
 if (X.CONST == null) {\n
   System.out.println("null");\n
  }\n
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Y.java (at line 5)\n
 if (x.INST_CONST == null) {\n
       ^^^^^^^^^^\n
Null comparison always yields false: The field INST_CONST is a nonnull constant\n
----------\n
2. WARNING in Y.java (at line 5)\n
 if (x.INST_CONST == null) {\n
   System.out.println("null");\n
  }\n
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. ERROR in Y.java (at line 11)\n
 if (X.CONST == null) {\n
       ^^^^^\n
Null comparison always yields false: The field CONST is a nonnull constant\n
----------\n
4. WARNING in Y.java (at line 11)\n
 if (X.CONST == null) {\n
   System.out.println("null");\n
  }\n
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in Y.java (at line 5)\n
	if (x.INST_CONST == null) {\n
	      ^^^^^^^^^^\n
Null comparison always yields false: The field INST_CONST is a nonnull constant\n
----------\n
2. WARNING in Y.java (at line 5)\n
	if (x.INST_CONST == null) {\n
			System.out.println("null");\n
		}\n
	                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. ERROR in Y.java (at line 11)\n
	if (X.CONST == null) {\n
	      ^^^^^\n
Null comparison always yields false: The field CONST is a nonnull constant\n
----------\n
4. WARNING in Y.java (at line 11)\n
	if (X.CONST == null) {\n
			System.out.println("null");\n
		}\n
	                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Y.java (at line 5)\n
	if (x.INST_CONST == null) {\n
	      ^^^^^^^^^^\n
Null comparison always yields false: The field INST_CONST is a nonnull constant\n
----------\n
2. WARNING in Y.java (at line 5)\n
	if (x.INST_CONST == null) {\n
			System.out.println("null");\n
		}\n
	                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. ERROR in Y.java (at line 11)\n
	if (X.CONST == null) {\n
	      ^^^^^\n
Null comparison always yields false: The field CONST is a nonnull constant\n
----------\n
4. WARNING in Y.java (at line 11)\n
	if (X.CONST == null) {\n
			System.out.println("null");\n
		}\n
	                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug481931_binary(NullAnnotationTest.java:10756)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest#testBug481931_binary - 1.8
Y.java [
import org.eclipse.jdt.annotation.*;
import test.X;
public class Y {
	@NonNull String getInstConst(X x) {
		if (x.INST_CONST == null) {
			System.out.println("null");
		}
		return x.INST_CONST;
	}
	static @NonNull String getConst() {
		if (X.CONST == null) {
			System.out.println("null");
		}
		return X.CONST;
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1566619421654/1.8.0_162_20190824_000350.txt

Standard Error

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