RFR 8037857: Methods j.u.Arrays.spliterator/stream(X[], int, int) throw IAE instead of specified AIOOBE when endIndex < startIndex
Paul Sandoz
paul.sandoz at oracle.com
Mon Mar 24 11:44:45 UTC 2014
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.
Paul.
More information about the core-libs-dev
mailing list