JDK-8167646 : Better invalid FilePermission
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-10-13
  • Updated: 2019-10-17
  • Resolved: 2016-10-31
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 Other
9 b143Fixed openjdk7uFixed
Related Reports
Relates :  
Relates :  
Description
For compatibility reason, when creating a FilePermission with a invalid path (i.e. if Paths.get(path) throws an exception) the creation succeeds but internally the mask and npath fields are assigned special values so that they don't equals/implies with a valid FilePermission. This can be made clearer.