8242292: java.nio.file.FileSystems.getFileSystem(URI) should throw IAE if the URI's scheme is null

Brian Burkhalter brian.burkhalter at oracle.com
Tue Apr 7 20:22:56 UTC 2020


> On Apr 7, 2020, at 12:24 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 07/04/2020 19:33, Brian Burkhalter wrote:
>> Please review the change included below to address [1] in hope of shedding some light on [2].
> The change looks okay as it's an oversight that it throws NPE rather than IAE then the URI doesn't have a scheme. We should probably update one of the existing tests for this case.

Here’s a version of the patch including a modified, existing test:

http://cr.openjdk.java.net/~bpb/8242292/webrev.00/

The impl change itself is the same.

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200407/0a1674b8/attachment.htm>


More information about the nio-dev mailing list