Skip to content

Failed

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

Failing for the past 2 builds (Since #167 )
Took 0.92 sec.

Error Message

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

------------ but was ------------
----------\n
1. INFO in X.java (at line 5)\n
 return this.o.toString();\n
             ^\n
Potential null pointer access: this expression has a '@Nullable' type\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. INFO in X.java (at line 5)\n
 return this.o.toString();\n
             ^\n
Potential null pointer access: this expression has a '@Nullable' type\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. INFO in X.java (at line 5)\n
	return this.o.toString();\n
	            ^\n
Potential null pointer access: this expression has a '@Nullable' type\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. INFO in X.java (at line 5)\n
	return this.o.toString();\n
	            ^\n
Potential null pointer access: this expression has a '@Nullable' type\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.test_nullable_field_17(NullAnnotationTest.java:5451)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest#test_nullable_field_17 - 1.8
X.java [
import org.eclipse.jdt.annotation.*;
public class X {
    @Nullable Object o = new Object();
    public String oString() {
         return this.o.toString();
    }
}

]


Full results sent to /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1584479137560/1.8.0_202_20200317_210541.txt

Standard Error

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