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

TCK : JTree.createTreeModel(Object value) method behavior if value is not array, Vector or Hashtable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      By specification of JTree.createTreeModel(Object value) method:
      Returns a TreeModel wrapping the specified object. If the object is:
          * an array of Objects,
          * a Hashtable, or
          * a Vector
      then a new root node is created with each of the incoming objects as children. Otherwise, a new root is created with the specified object as its value.

      But if we try to use such value (which is not array, Hashtable or Vector), then the value of root is String value "root" instead of specified object.
      ###@###.### 2004-12-15 14:14:45 GMT

            svioletsunw Scott Violet (Inactive)
            aglasman Alexander Glasman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: