RFR 8057113: (fs) Path should have a method to test the filename extension
brian.burkhalter at oracle.com
Wed Feb 14 04:23:11 UTC 2018
As a first cut at this problem, this patch would add a new method hasExtension() to the java.nio.file.Path interface with a default implementation. The implementation is overridden only by UnixPath. ZipPath does not override it but perhaps should.
Regression tests passed on all platforms both with and without the UnixPath changes (in order to verify the default implementation on all platforms).
Obviously a CSR will be in order.
More information about the nio-dev