JDK-8059977 : StandardJavaFileManager should support java.nio.file.Path
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-10-08
  • Updated: 2017-05-17
  • Resolved: 2015-01-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 9
9 b46Fixed
Related Reports
Relates :  
Relates :  
Description
java.nio.file.Path is becoming the preferred replacement for java.io.File and related API like java.util.zip.ZipFile.

We should add methods to StandardJavaFileManager to support java.nio.file.Path. 

Since this is an interface, we need to be careful about compatibility. We can use default methods (added in JDK 8) to attempt to convert between Path and File for existing implementations of StandardJavaFileManager. A better implementation can override such methods to handle Path objects as desired.