-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
None
-
x86
-
windows_nt
JDK1.2RC2
DefaultCaret is extended from Rectangle. When I invoke setCaret(newCaret) which is a bound property setter, the method check equality of specified caret first before bounding. Since DefaultCaret isn't override equals() Rectangle's equals() is called. So it compares only x,y,width and height.
This could be wrong because caret has a several private and protected member variables that represent caret itself. DefaultCaret should provide reasonable equals() method.
bae-chul.kim@eng 1998-11-03
DefaultCaret is extended from Rectangle. When I invoke setCaret(newCaret) which is a bound property setter, the method check equality of specified caret first before bounding. Since DefaultCaret isn't override equals() Rectangle's equals() is called. So it compares only x,y,width and height.
This could be wrong because caret has a several private and protected member variables that represent caret itself. DefaultCaret should provide reasonable equals() method.
bae-chul.kim@eng 1998-11-03
- duplicates
-
JDK-4181804 DefaultCaret.equals() not implemented.
-
- Resolved
-