RFR: 8290047: (fs) FileSystem.getPathMatcher does not check for ":" at last index [v3]

Brian Burkhalter bpb at openjdk.org
Mon Aug 1 16:15:59 UTC 2022


On Mon, 1 Aug 2022 06:07:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> [...] I think will require a small update to the javadoc to make it clear that both an empty syntax and empty pattern are illegal.

I read the existing specification

     * @throws  IllegalArgumentException
     *          If the parameter does not take the form: {@code syntax:pattern}

as covering both cases, but I suppose one could explicitly state that "neither syntax nor pattern may be empty."

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

PR: https://git.openjdk.org/jdk/pull/9595


More information about the nio-dev mailing list