RFR 8037857: Methods j.u.Arrays.spliterator/stream(X[], int, int) throw IAE instead of specified AIOOBE when endIndex < startIndex

Alan Bateman Alan.Bateman at oracle.com
Mon Mar 24 12:28:41 UTC 2014

On 24/03/2014 11:44, Paul Sandoz wrote:
> Hi,
> Simple patch to align code with spec for stream/spliterator factory methods on Arrays and spliterator methods on Spliterators, and make the next release of the JCK happy:
>    http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8037857-spliterator-aioob/webrev/
> After 9 it should go back to 8u20.
This looks good to me. The test looks useful too, a minor comment is 
that I think it's more common to put the test tags at the top after the 
copyright header.


More information about the core-libs-dev mailing list