RFR: 8356888: (fs) FileSystems.newFileSystem that take an env must specify IllegalArgumentException

Alan Bateman alanb at openjdk.org
Thu May 22 11:26:51 UTC 2025


On Thu, 22 May 2025 00:13:57 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add a throws clause for `IllegalArgumentException` to the `java.nio.file.FileSystems` methods `newFileSystem(Path, Map)` and `newFileSystem(Path, Map, ClassLoader)`. Also update the equivalent IAE verbiage for the analogous methods which accept a `URI` parameter instead of a `Path`.

The update wording in the existing descriptions looks okay, and adding it to the JDK 13+ methods is good, an oversight that the exception descriptions were missed.

-------------

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25376#pullrequestreview-2860855355


More information about the nio-dev mailing list