Initial webrev with changes for JDK 9
Chris Hegarty
chris.hegarty at oracle.com
Tue Mar 15 12:19:39 UTC 2016
Thank you for the feedback Sherman.
On 14/03/16 19:50, Xueming Shen wrote:
> jar.Main: comments
>
> (1) InputstreamSupplier:
> since what we really need here is the byte[], maybe just go
> straightforward
> to use InputStream/Files.(path)readAllBytes() ?
That is cleaner. Done.
> (2) #273 don't the "moduleInfo" used for consistency check the same one as
> the used for updating at #244? can't be shared?
Not always, it can be augmented by addExtendedModuleAttributes .
> (3) if it was me I would simply have passed the "moduleInfoBytes" around as
> a byte[], we might not even need this "InputStreamSupplier"
> interface.
Similar to 1 above. Done.
> (4) printModuleDescriptor: for a "file" jar, it might be much faster to
> open the
> zip file with a ZipFile, then entry -> input stream. otherwise,
> the ZIS might
> be very slow if it's a big jar and the descriptor file is at the
> end of the file.
That is better. Done
> (5) hashDependences:
> "matcher" can be reused as
> Matcher m = dependenciesToHash.matcher("");
> for (...) {
> m.reset(...).find() ...
> }
Thanks, Done.
> btw, what's the spec of the "mach" here? a "match()" or a
> "find()"? just check.
'find'.
You can find the changes here:
http://hg.openjdk.java.net/jigsaw/jake/jdk/rev/507b98946557
-Chris.
More information about the jigsaw-dev
mailing list