RFR: 8276661: (fs) UserDefinedFileAttributeView no longer works with long path (win) [v8]

Andrey Turbanov duke at openjdk.java.net
Fri Dec 3 09:39:18 UTC 2021


On Thu, 2 Dec 2021 17:51:59 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Please consider this change which uses a new method `WindowsPath::getPathWithPrefixForWin32Calls`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8276661: s/\!forceLongPrefix/allowShortPath/

src/java.base/windows/classes/sun/nio/fs/WindowsPath.java line 219:

> 217:         // of the VM)
> 218:         if (allowShortPath && type != WindowsPathType.DRIVE_RELATIVE) {
> 219:             synchronized (this) {

Hm. Why do we need this `synchronized` here? Seems redundant for me.

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

PR: https://git.openjdk.java.net/jdk/pull/6435


More information about the nio-dev mailing list