Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368007

(fs) Improve specification of Path.endsWith(String)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • core-libs
    • generic
    • generic

      Despite the @implSpec clarifying its behavior, Path.endsWith(String) appears to be easily taken to being equivalent to Path.toString().endsWith(String), thereby leading to unexpected behavior. The verbiage of this method could be enhanced to make the expected behavior more explicit. Similar story for Path.startsWith(String). Please refer to the linked mailing list threads for more background.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: