JDK-8016066 : (fs) Files.createDirectory fails if the resoved path is exactly 248 characters long
  • Type: Backport
  • Backport of: JDK-8011128
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7u40
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-06-06
  • Updated: 2013-07-03
  • Resolved: 2013-06-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.
JDK 7 JDK 8
7u40 b30Fixed 8Fixed
Comments
Verified with regression test with jdk 7u40 b30. jdk1.7.0_25b11\bin\java.exe NameLimits Testing createFile on paths 8 .. 255 Testing createDirectory on paths 8 .. 255 Unable to create directory of length 200 (full path 248), java.nio.file.FileSystemException: nameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: The filename or ext ension is too long. Exception in thread "main" java.lang.RuntimeException: Test failed at NameLimits.main(NameLimits.java:100) jdk1.7.0_40b30\bin\java.exe NameLimits Testing createFile on paths 8 .. 255 Testing createDirectory on paths 8 .. 255
03-07-2013