RFR: 8253761: Wrong URI syntax printed by jar --describe-module

Alan Bateman alanb at openjdk.java.net
Thu Oct 1 13:31:46 UTC 2020


On Tue, 29 Sep 2020 05:38:18 GMT, Christian Stein <cstein at openjdk.org> wrote:

> This commit replaces `"/!"` with `"!/"` in order to generate
> valid URIs when printing a module description of a modular
> JAR file. A valid URI is described here: [1]
> 
> https://bugs.openjdk.java.net/browse/JDK-8253761
> 
> [1] https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/net/JarURLConnection.html

The change looks good.

test/jdk/tools/jar/modularJar/Basic.java has tests for jar --describe-module and maybe we could add a test to this to
make sure that it outputs the expected JAR URL.

-------------

PR: https://git.openjdk.java.net/jdk/pull/393


More information about the compiler-dev mailing list