RFR 8156497: Add jar tool support for Multi-release modular JARs
Alan Bateman
Alan.Bateman at oracle.com
Fri May 20 21:24:41 UTC 2016
On 20/05/2016 16:55, Chris Hegarty wrote:
> :
>
> http://cr.openjdk.java.net/~chegar/8156497.00/
>
> Note: while there are some new test scenarios added, which give
> reasonable coverage, further tests will be added later. Steve has some
> additional jar tools support coming for easier creation of MRJARS.
>
>
The checks looks right.
In checkModuleInfos then I assume you can use findFirst instead of
collecting the module-infos into a set.
The comment in computeHashes is confusing - too many "as" :-)
You might want to re-read the error messages to see if they can be
improved. For example "Invalid versioned module-info.class ..." might be
better as "module-info.class in versioned section ...". Another one is
"Unexpected versioned module-info.class without root module-info.class"
where it might be clearer to say "module-info.class found in versions
section of JAR file, no module-info.class found in root directory" or
something like that.
Looks like the copyright headers have the Classpath exception so now
might be a good time to fix those.
-Alan
More information about the jigsaw-dev
mailing list