[Request for Comments] File extension redux

Brian Burkhalter brian.burkhalter at oracle.com
Wed Oct 11 16:55:13 UTC 2023


I’ve not gone through 100% of the edge cases, but for this one I would think both add and remove would not affect “.” or “foo.”.

Brian

On Oct 11, 2023, at 9:50 AM, David Lloyd <david.lloyd at redhat.com<mailto:david.lloyd at redhat.com>> wrote:

For the edge case where the file ends in, /or/ comprises, a solitary `.`, would `removeExtension()` remove the `.` and `addExtension("")` add it back, or would both methods leave the path unaffected (either one would satisfy the invariant)? Or some other behavior?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20231011/4a0e0b20/attachment.htm>


More information about the nio-dev mailing list