RFR: 8354450: Using a File with a path containing a trailing space should fail when alternative data streams are disabled (win) [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Apr 18 01:05:04 UTC 2025
On Wed, 16 Apr 2025 17:43:58 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> I am not sure what you mean here as file paths _can_ contain (s) space(s).
>
> The question is about directories in the path that end with space. So yes, the file path may contain spaces but the proposed check is only looking at the end last element.
>From experimentation with C++ code is VS, it appears that `CreateDirectoryW` will create a directory with either a leading or trailing space in its name, whereas `createFileW` will create a file with a leading space in its name, but a trailing space is trimmed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24635#discussion_r2049805179
More information about the core-libs-dev
mailing list