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

TreeModel.getIndexOfChild() API typo

XMLWordPrintable

    • b48
    • x86
    • windows_xp

      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      API states:

      getIndexOfChild

      int getIndexOfChild(Object parent,
                          Object child)

      Parameters:
      parent - a note in the tree, obtained from this data source


      Should say "a node", not "a note"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      parent - a node in the tree, obtained from this data source
      ACTUAL -
      parent - a note in the tree, obtained from this data source

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/tree/TreeModel.html#getIndexOfChild(java.lang.Object,%20java.lang.Object)
      ###@###.### 2005-06-27 23:58:17 GMT

            shickeysunw Shannon Hickey (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: