RFR JDK-8165640: Enhance jar tool to allow module-info in versioned directories but not in base in modular multi-release jar files

Xueming Shen xueming.shen at oracle.com
Sat Feb 11 02:06:20 UTC 2017

On 2/10/17, 2:30 PM, Paul Sandoz wrote:
> We can make jar -d output similiar to `java —-list-modules` and have the entry name next to the module name in the same line.
> module hi (module-info.class)
> module hi (META-INF/versions/10/module-info.class)

updated to use the suggested format.

> 1759-1763:  an alternative is to use stream().sorted().foreach(…) that you won’t need to create the names array.
> Yes, i prefer to stream approach too. (FWIW if Stream.toArray was used and performance was a concern that might motivate using a more imperative style).

updated to use stream style.

(webrev link is changed. the id was wrong in previous email)


More information about the core-libs-dev mailing list