You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/06/16 17:09:44 UTC
DO NOT REPLY [Bug 45212] New: AbstractReplicatedMap.
entrySet returns values not entries.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45212
Summary: AbstractReplicatedMap.entrySet returns values not
entries.
Product: Tomcat 6
Version: 6.0.16
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Cluster
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: robert.newson@gmail.com
AbstractReplicatedMap implements entrySet() as follows;
public Set entrySet() {
LinkedHashSet set = new LinkedHashSet(super.size());
Iterator i = super.entrySet().iterator();
while ( i.hasNext() ) {
Map.Entry e = (Map.Entry)i.next();
Object key = e.getKey();
MapEntry entry = (MapEntry)super.get(key);
if ( entry != null && entry.isPrimary() )
set.add(entry.getValue());
}
return Collections.unmodifiableSet(set);
}
this returns a set of all the *values*, the line set.add(entry.getValue())
should be set.add(entry);
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45212] AbstractReplicatedMap.
entrySet returns values not entries.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45212
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> 2008-07-04 06:32:39 PST ---
This has been fixed in 6.0.x and will be included in 6.0.17 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45212] AbstractReplicatedMap.
entrySet returns values not entries.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45212
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-06-16 10:27:54 PST ---
Thanks for the report. This is fixed in trunk and proposed for 6.0.x
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org