DO NOT REPLY [Bug 41900] New: - wrong implementation of SlidePrincipal.equals method
[email protected] Tue, 20 Mar 2007 04:27:06 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.slide.devel |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41900>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41900
Summary: wrong implementation of SlidePrincipal.equals method
Product: Slide
Version: 2.1
Platform: Other
URL: http://auk.tomsk.ru
OS/Version: All
Status: NEW
Keywords: PatchAvailable
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
dear developers!
with this implementation of equal method some code (who expects equal(Object)
method) doesn't work correctly. Example:
Map map = new HashMap();
map.put(new SlidePrincipal("test"), null);
and call
map.contains(new SlidePrincipal("test"));
returns false.
Could you add something like:
public boolean equals(Object data)
{
if (data instanceof SlidePrincipal)
return equals((SlidePrincipal) data);
return false;
}
Thanks in advance!
Alexey A. Ukhov
startext GmbH
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.