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

(spec) Clarify String.startsWith javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.2, 6
    • core-libs
    • b35
    • generic, x86
    • generic, windows_xp

      Doug Lea writes:

      A student was confused by the Javadoc for String.startsWith.
      For good reason. It says

         Tests if this string starts with the specified prefix beginning a
         specified index.

      Besides the typo, this leaves ambiguous whether the index refers
      to this string or to the prefix.


      ###@###.### 2005-04-22 18:55:58 GMT

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: