RFR JDK-8012645: Stream methods on BitSet, Random, ThreadLocalRandom, ZipFile (original) (raw)

Henry Jen henry.jen at oracle.com
Mon Apr 29 19:41:35 UTC 2013


On 04/27/2013 08:01 AM, Alan Bateman wrote:

On 27/04/2013 00:08, Henry Jen wrote:

Hi,

Please review webrev at http://cr.openjdk.java.net/~henryjen/ccc/8012645.0/webrev The API doc in specdiff format is at http://cr.openjdk.java.net/~henryjen/ccc/8012645.0/specdiff Cheers, Henry In the ZipFile spec it reads "Entries appear in the {@code Stream} in the order they appear in the ZIP file" but I think the order of the entries in the central directory and this may not be the same as the order of the entries in the archive.

It is the order of enumeration of entries(), which I believe is the order of the entries in the central directory of a zip file.

After another thought, is the ordering actually meaningful or has any sort of benefit/guaranteed characteristics we should preserve? Otherwise, it is probably better to left out the ORDERED.

Cheers, Henry



More information about the core-libs-dev mailing list