8076442: Cannot fully read BitSet.stream() if bit Integer.MAX_VALUE is set

Chris Hegarty chris.hegarty at oracle.com
Fri Apr 3 09:57:07 UTC 2015

This is a request for review for a small change to address 8076442 [1].

Seems to be a day one bug in the internal BitSetIterator, for a boundary condition when the Integer.MAX_VALUE bit is set. The change to the iterator, and test, is in line with the advise in BitSet.nextSetBit(int) ( break/terminate processing after reaching an index of Integer.MAX_VALUE ).



[1] https://bugs.openjdk.java.net/browse/JDK-8076442

More information about the core-libs-dev mailing list