RFR 8025535: Unsafe typecast in java.util.stream.SortedOps
Paul Sandoz
paul.sandoz at oracle.com
Tue Oct 1 19:30:29 UTC 2013
Hi,
Please review the following patch that checks size limits for the sorted operation and fails quickly rather than failing with an obscure ISE or an OOME later on:
http://cr.openjdk.java.net/~psandoz/tl/JDK-8025535-sorted-unsafe-type-cast/webrev/
Tests have been added that assert for both SIZED and non-SIZED (at pipeline construction) inputs to sorted().
Paul.
More information about the core-libs-dev
mailing list