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

(spec) Clarify String.startsWith javadoc

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2, 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b35
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: