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

DefaultCaret should override equals() method

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

      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

            tprinzing Tim Prinzing (Inactive)
            bkimsunw Bae-chul Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: