Very strange,

See the failure at
https://builds.apache.org/view/POI/job/POI-JDK8/1020/testReport/junit/org.apache.poi.hwpf.usermodel/TestBug47563/test/

We saw this now at least twice in the Jenkins builds,

I have no clue how this can fail at all, the code at that point is

int next = text.indexOf(Integer.toString(i), mustBeAfter);
assertTrue("Test with " + rows + "/" + columns + ": Should not find "
+ i + " but found it at " + next + " in " + text,
      next != -1);

The Junit Assert shows that "next" is actually -1, so why does the
assertion fail here?

junit.framework.AssertionFailedError: Test with 1/5: Should not find 0 but
found it at -1 in
 at org.apache.poi.hwpf.usermodel.TestBug47563.test(TestBug47563.java:80)
 at org.apache.poi.hwpf.usermodel.TestBug47563.test(TestBug47563.java:30)

The only explanation I have is a JDK bug, but the same version is used in
successful runs as well, the version of JDK used here is as follows,

1.8.0/1.8.0-b132/25.0-b70/Java HotSpot(TM) 64-Bit Server VM from
Oracle Corporation on Linux: 3.13.0-36-lowlatency


Dominik.

Reply via email to