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

Alan Bateman alanb at openjdk.org
Mon Aug 1 17:19:06 UTC 2022


On Mon, 1 Aug 2022 16:13:49 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 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."

Alternatively, change "where ':' stands for itself" to "where syntax and pattern components are non-empty strings and ':' stands for itself" sot that it's up front when the input string is described.

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

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


More information about the nio-dev mailing list