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

(spec) String.replaceFirst(...) and String.replaceAll(...) missing @param for replacement String

XMLWordPrintable

    • b35
    • generic, x86
    • generic, windows_2000



      Name: rmT116609 Date: 07/08/2002


      FULL PRODUCT VERSION :
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      Missing the description of the parameter <code>replacement</code> in the methods String.replaceFirst (...) and String.replaceAll(...).

      Here is the snippet from JDK 1.4.1 API docs:
      <snippet-start>
      Parameters:
      regex - the regular expression to which this string is to be matched
      </snippet-end>
      but the methods have two parameters regex and replacement.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.See JDK 1.4.1 API documentation of the class String.

      http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String)

      http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#replaceFirst(java.lang.String, java.lang.String)


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected description of the parameters:
      <snippet-start>
      Parameters:
      regex - the regular expression to which this string is to be matched
      replacement - the replacement string
      </snippet-end>


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 158955)
      ======================================================================

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: