Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest.testBug319201d - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 12)\n
 } while (b2);\n
          ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n
2. ERROR in X.java (at line 15)\n
 } while (b3);\n
          ^^\n
Null pointer access: This expression of type Boolean is null but requires auto-unboxing\n
----------\n
3. ERROR in X.java (at line 42)\n
 } while (b7);\n
          ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 12)\n
 } while (b2);\n
          ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n
2. ERROR in X.java (at line 15)\n
 } while (b3);\n
          ^^\n
Null pointer access: This expression of type Boolean is null but requires auto-unboxing\n
----------\n
3. ERROR in X.java (at line 42)\n
 } while (b7);\n
          ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 12)\n
	} while (b2);\n
	         ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n
2. ERROR in X.java (at line 15)\n
	} while (b3);\n
	         ^^\n
Null pointer access: This expression of type Boolean is null but requires auto-unboxing\n
----------\n
3. ERROR in X.java (at line 42)\n
	} while (b7);\n
	         ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 12)\n
	} while (b2);\n
	         ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\n
----------\n
2. ERROR in X.java (at line 15)\n
	} while (b3);\n
	         ^^\n
Null pointer access: This expression of type Boolean is null but requires auto-unboxing\n
----------\n
3. ERROR in X.java (at line 42)\n
	} while (b7);\n
	         ^^\n
Potential null pointer access: This expression of type Boolean may be null but requires auto-unboxing\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:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest.testBug319201d(NullReferenceTest.java:12789)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest#testBug319201d - 1.8
X.java [
public class X {
  public void foo(boolean cond, boolean cond2) {
      Boolean b = null;
      do {
          b = false;
          if (cond) continue;
      } while (b);
      Boolean b2 = null;
      do {
          if (cond) continue;
          b2 = false;
      } while (b2);
      Boolean b3 = null;
      do {
      } while (b3);
      Boolean b4 = null;
      do {
        if (cond) {
            b4 = true;
            if (cond2) continue;
        }
        b4 = false;
      } while (b4);
      Boolean b5 = null;
      do {
         b5 = true;
      } while (b5);
      Boolean b6 = null;
      do {
         b6 = true;
         continue;
      } while (b6); 
      Boolean b7 = null;
      Boolean b8 = null;
      do {
        if (cond) {
            b7 = true;
            continue;
        } else {
            b8 = true;
        }
      } while (b7);
  }
}
]


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

Standard Error

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