RFR: 8262742: (fs) Add Path::resolve with varargs string [v6]

ExE Boss duke at openjdk.org
Tue Jul 18 05:51:06 UTC 2023


On Mon, 17 Jul 2023 19:10:41 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Add to `java.nio.file.Path` methods which allow resolution of multiple descendants.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8262742: Try to improve specifications of varargs resolve()s

src/java.base/share/classes/java/nio/file/Path.java line 527:

> 525:      * {@code more} specifies one or more {@code Path}s, then {@code first}
> 526:      * is resolved against this path and then the additional paths in
> 527:      * {@code more} are iteratively resolved.

Does the following better describe what this method does?
Suggestion:

     * {@code more} are iteratively resolved against the previous path.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14805#discussion_r1266250927


More information about the nio-dev mailing list