-
Bug
-
Resolution: Fixed
-
P4
-
1.4.2
-
b14
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Java 1.4.2 Swing
A DESCRIPTION OF THE PROBLEM :
TreeNode a = ...
TreeNode b = ....
TreePath x = new TreePath(...[a,b]...)
TreePath y = new TreePath(...[a,b]...)
x.isDescendant(x) returns true (by the first line of code)
but
x.isDescendant(y) returns false (by what appears to be oversight)
In general, I'd say X is NOT a descendent of X, but I would say that X _dominates_ X, and it's the latter that I need. The documentation should make it 100% clear what the semantics are, and either provide a comment or neighboring method to get the other semantics.
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2004-11-08 22:11:53 GMT
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Java 1.4.2 Swing
A DESCRIPTION OF THE PROBLEM :
TreeNode a = ...
TreeNode b = ....
TreePath x = new TreePath(...[a,b]...)
TreePath y = new TreePath(...[a,b]...)
x.isDescendant(x) returns true (by the first line of code)
but
x.isDescendant(y) returns false (by what appears to be oversight)
In general, I'd say X is NOT a descendent of X, but I would say that X _dominates_ X, and it's the latter that I need. The documentation should make it 100% clear what the semantics are, and either provide a comment or neighboring method to get the other semantics.
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2004-11-08 22:11:53 GMT