URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13446>
Summary: java.text.CollationKey compares arrays using
equals()
Project: classpath
Submitted by: daveho
Submitted on: Sat 06/18/2005 at 20:18
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
In classpath-0.15:
The equals() method for java.text.CollationKey compares byte
arrays using the equals() method at source line 157.
This compares the
arrays for reference equality, rather than comparing their
contents. I am guessing that this is not the intended behavior.
However, if it is the intended behavior, just using the ==
operator and a comment explaining what is happening would be
a good idea.
This problem found using FindBugs, http://findbugs.sourceforge.net/
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13446>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Commit-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-classpath