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

Javadoc comment for JTextComponent.getDisabledTextColor() is incorrect

    Details

    • Subcomponent:
    • Resolved In Build:
      b70
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_8

      Description

      Name: rmT116609 Date: 02/13/2004


      A DESCRIPTION OF THE PROBLEM :
      Javadoc comment for JTextComponent.getDisabledTextColor() is incorrect, looks like a copy-paste error.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Fetches the current color used to render the disabled text.

      ACTUAL -
      Fetches the current color used to render the selected text.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/text/JTextComponent.html#getDisabledTextColor()
      (Incident Review ID: 238699)
      ======================================================================
      Suggested fix provided by java.net member joconner:

      A DESCRIPTION OF THE FIX :
        Bug number : 4994762
        Bug Description : Javadoc comment for JTextComponent.getDisabledTextColor() is incorrect
      Diff Baseline : Mustang b64 (jdk-6-rc-src-b64-jrl-15_dec_2005.jar)
      Source file: j2se/share/javax/swing/text/JTextComponent.java
      Diff file:

      --- JTextComponent.java 2005-12-22 14:42:53.542200000 -0800
      +++ JTextComponent.java.new 2005-12-22 14:42:33.012680000 -0800
      @@ -1300,7 +1300,7 @@

           /**
            * Fetches the current color used to render the
      - * selected text.
      + * disabled text.
            *
            * @return the color
            */


      JUnit TESTCASE :
      Javadoc bug: not applicable

      FIX FOR BUG NUMBER:
      4994762

        Attachments

          Activity

            People

            • Assignee:
              idk Igor Kushnirskiy (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: