RFR: 8290499: new File(parent, "/") breaks normalization – creates File with slash at the end

Roger Riggs rriggs at openjdk.org
Fri May 26 15:52:54 UTC 2023


On Tue, 23 May 2023 22:49:57 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> In `java.io.File`, change the constructors `File(File,String)` and `File(String,String)` so that they do not for typical cases return a `File` whose path has a trailing name separator.

LGTM

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14109#pullrequestreview-1446514781


More information about the core-libs-dev mailing list