RFR: 8271079: JavaFileObject#toUri and multi-release jars [v3]

Lance Andersen lancea at openjdk.java.net
Fri Dec 10 19:43:10 UTC 2021

On Fri, 10 Dec 2021 08:16:46 GMT, Christian Stein <cstein at openjdk.org> wrote:

>> Prior to this PR, `toUri()` of class `ZipPath` in module `jdk.zipfs` and class `PathFileObject` in module `jdk.compiler` were always composed by base path names. Even for versioned entries of a multi-release JAR file.
>> Now, a `URI` for an entry is composed of its real path names using an existing lookup function in the associated zip file system object.
>> This PR also removes a superseded work around for [JDK-8134451](https://bugs.openjdk.java.net/browse/JDK-8134451).
>> Fixes https://bugs.openjdk.java.net/browse/JDK-8271079
> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
>   Turn `getRealPath()` into a no-arg helper method

The changes look good.


Marked as reviewed by lancea (Reviewer).

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

More information about the compiler-dev mailing list