[9] RFR of 8073445: (fs) FileSystem.getPathMatcher(...) should check syntax component without regard to case

Brian Burkhalter brian.burkhalter at oracle.com
Fri Feb 27 23:14:55 UTC 2015


Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8073445
Patch:	http://cr.openjdk.java.net/~bpb/8073445/webrev.00/

Simply change to use the String method equalsIgnoreCase() instead of equals() on the syntax. Note that somewhat confusingly the specification in [1] states

> For both the glob and regex syntaxes, the matching details, such as whether the matching is case sensitive, are implementation-dependent and therefore not specified.


Does the proposed code change imply an update to this specification?

Thanks,

Brian

[1] http://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#getPathMatcher-java.lang.String-


More information about the nio-dev mailing list