DefaultCaret should override equals() method

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: