On Wed, 16 Apr 2025 07:33:54 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8354450: Add specific conditional for trailing space; adjust test > > src/java.base/windows/classes/java/io/WinNTFileSystem.java line 372: > >> 370: int len = pathname.length(); >> 371: if (len > 0 && pathname.charAt(len - 1) == ' ') >> 372: return true; > > Can you think about "foo \bar" case too? I am not sure what you mean here as file paths _can_ contain (s) space(s). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24635#discussion_r2047396907