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

Alan Bateman Alan.Bateman at oracle.com
Fri Apr 3 11:28:01 UTC 2015

On 03/04/2015 10:57, Chris Hegarty wrote:
> 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 ).
> http://cr.openjdk.java.net/~chegar/8076442/webrev/
This looks okay to me, easily to over look this case.


More information about the core-libs-dev mailing list