Can we deprecate Path.endsWith(String)?

Alan Bateman alan.bateman at oracle.com
Thu Jan 8 09:39:31 UTC 2026



On 08/01/2026 01:02, Brian Burkhalter wrote:
>
> We have had a bit of a race condition in this discussion, but at least 
> there appears to be some agreement that deprecation alone (with some 
> javadoc enhancement) is a good way to go.

It would be also be good to try again to get a handle on the use-cases 
around the convention that we know as the "file extension". We've had 
several failed attempts on this but I think you make good progress on 
defining it at the last iteration. That is, I assume some temptation to 
use endsWith(String) is just wanting to test if the string 
representation has an interesting suffix.

-Alan



More information about the nio-dev mailing list