On 9/15/14 6:40 PM, Martin Buchholz wrote:
Hi Alan, Xueming,
I'd like you to do a code review.
https://bugs.openjdk.java.net/browse/JDK-8058520
http://cr.openjdk.java.net/~martin/webrevs/openjdk9/jar-leadingGarbage/
<http://cr.openjdk.java.net/%7Emartin/webrevs/openjdk9/jar-leadingGarbage/>
It was the performance concern back then that led us to keep using the
input stream
for extracting, if it's to extract the whole zip/jar.
There is also some "regressions" reported later with the ZipFile path
when dealing with
some "wrong"/non-ZIP64-spec-compliant huge zip file, in which it's fine
to access those
entries from the beginning of the stream, but can't jump back to the
individual entries
from the cen table.
It appears you will have to flip a coin to see which case is more
"important"?
-Sherman