JDK-8130830 : (fs) Files.isWritable method returns false when the path is writable (win)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8u45
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-07-08
  • Updated: 2019-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
windows 7 64-bit
Microsoft Windows [Verze 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
able to reproduce this problem:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7190897


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7190897

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Result of isWritable:        true
Result of isWritable:        true
ACTUAL -
Result of isWritable:        false
Result of isWritable:        false

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7190897
---------- END SOURCE ----------


Comments
1. Run the attached test case (IsWritableBugDemo.java) in Windows 7 (64-bit) 2. Checked this for JDK 8, 8u40, 8u45, 8u60 ea b21, and 9 ea b71. 8: OK 8u40: OK 8u45: FAIL 8u60 ea b21: OK 9 ea b71: OK 3. Output with JDK 8u45: > java IsWritableBugDemo java.vm.name: Java HotSpot(TM) 64-Bit Server VM java.vm.version: 25.45-b02 java.vm.vendor: Oracle Corporation java.version: 1.8.0_45 java.vendor: Oracle Corporation java.class.path: . java.library.path: C:\Program Files\Java\jdk1.8.0_45\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files\Java\jdk1.8.0_45\bin;C:\Program Files\Java\jdk1.9.0\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\jdk1.8.0_40\bin;C:\Program Files\Java\jdk1.9.0\bin;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files\Java\jdk1.9.0\bin;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Support Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;%CLASSPATH%;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;%CATALINA_HOME%\bin;C:\Program Files\Apache\maven\bin;C:\Program Files\Java\jdk1.8.0_45\bin;.;;.;;.;;.;;.;;.;;.;;.;;.;;. java.ext.dirs: C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext;C:\windows\Sun\Java\lib\ext os.name: Windows 7 os.arch: amd64 os.version: 6.1 user.name: pardesha user.dir: D:\opt\ora\Java_Programs\9022125 user.home: C:\Users\pardesha Default FileSystem Provider: file Absolute path of demo file: D:\opt\ora\Java_Programs\9022125\demofile.txt Result of deleteIfExists: false Result of isWritable: true Result of isWritable: true Line read: First line of text Line read: Second line of text 4. Conclusion: This issue is reproducible with JDK 8u45.
09-07-2015