We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9f5e6 commit 6bd05b1Copy full SHA for 6bd05b1
src/java.base/windows/classes/sun/nio/fs/WindowsPath.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -206,7 +206,7 @@ String getPathForWin32Calls() throws WindowsException {
206
// directory on removal media devices can change during the lifetime
207
// of the VM)
208
if (type != WindowsPathType.DRIVE_RELATIVE) {
209
- synchronized (path) {
+ synchronized (this) {
210
pathForWin32Calls = new WeakReference<String>(resolved);
211
}
212
0 commit comments