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

DefaultCaret should override equals() method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tprinzinsunw Timothy Prinzing (Inactive)
                Reporter:
                bkimsunw Bae-chul Kim (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: