diff -r 4e7661eaa211 -r 0283fbab043c jdk/src/windows/classes/sun/awt/shell/Win32ShellFolder2.java --- a/jdk/src/windows/classes/sun/awt/shell/Win32ShellFolder2.java Wed Jul 05 17:01:55 2017 +0200 +++ b/jdk/src/windows/classes/sun/awt/shell/Win32ShellFolder2.java Wed Oct 21 14:25:25 2009 +0400 @@ -524,7 +524,7 @@ // NOTE: this method uses COM and must be called on the 'COM thread'. See ComInvoker for the details private static native int compareIDs(long pParentIShellFolder, long pidl1, long pidl2); - private Boolean cachedIsFileSystem; + private volatile Boolean cachedIsFileSystem; /** * @return Whether this is a file system shell folder @@ -759,7 +759,7 @@ }, InterruptedException.class); } - private Boolean cachedIsLink; + private volatile Boolean cachedIsLink; /** * @return Whether this shell folder is a link