-
Bug
-
Resolution: Fixed
-
P5
-
6
-
b19
-
x86
-
windows_xp
A DESCRIPTION OF THE PROBLEM :
From the interface documentation for javax.swing.tree.TreeModel:
"If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent __than__ the resulting TreePath objects will be considered equal as well."
Should be "then" not "than".
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent then the resulting TreePath objects will be considered equal as well.
ACTUAL -
If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent than the resulting TreePath objects will be considered equal as well.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/javase/6/docs/api/javax/swing/tree/TreeModel.html
From the interface documentation for javax.swing.tree.TreeModel:
"If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent __than__ the resulting TreePath objects will be considered equal as well."
Should be "then" not "than".
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent then the resulting TreePath objects will be considered equal as well.
ACTUAL -
If a TreeModel returns the same object, as compared by equals, at two different indices under the same parent than the resulting TreePath objects will be considered equal as well.
URL OF FAULTY DOCUMENTATION :
http://java.sun.com/javase/6/docs/api/javax/swing/tree/TreeModel.html