JDK-8242292 : (fs) FileSystems.getFileSystem(URI) should throw IAE if the URI scheme is null
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-04-07
  • Updated: 2020-04-18
  • Resolved: 2020-04-13
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 15
15 b19Fixed
Related Reports
Relates :  
Description
If the scheme is null, FileSystems.getFileSystem(URI) will currently throw a mysterious NullPointerException. The package documentation for java.nio.file indicates that NPEs will in general be thrown if a parameter is null or an array or collection contains a null element, but this case does not meet those conditions. Also, using the URI as the detail message of an IAE could provide debugging clues.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/579c6487bbae User: bpb Date: 2020-04-13 17:18:33 +0000
13-04-2020