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

Brian Burkhalter bpb at openjdk.org
Tue May 30 16:20:06 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.

This pull request has now been integrated.

Changeset: 21af8bae
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/21af8bae38dd845d5cbeb2b2770e537b5b9bad22
Stats:     34 lines in 3 files changed: 28 ins; 0 del; 6 mod

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

Reviewed-by: rriggs

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

PR: https://git.openjdk.org/jdk/pull/14109


More information about the core-libs-dev mailing list