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 2009/12/11 09:22:56 UTC
DO NOT REPLY [Bug 48373] New: Can not get clients from TomcatBayeux
https://issues.apache.org/bugzilla/show_bug.cgi?id=48373
Summary: Can not get clients from TomcatBayeux
Product: Tomcat 7
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Modules: bayeux
AssignedTo: dev@tomcat.apache.org
ReportedBy: wujunchen@gmail.com
When call the getClients method,there will be a Exception:
java.lang.ArrayStoreException: java.util.HashMap$Entry
maybe this method should be:
public List<Client> getClients() {
return java.util.Arrays.asList(clients.values().toArray(new Client[0]));
}
instead of this:
public List<Client> getClients() {
return java.util.Arrays.asList(clients.entrySet().toArray(new Client[0]));
}
--
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 48373] Can not get clients from TomcatBayeux
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48373
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Modules: bayeux |Bayeux
Version|trunk |unspecified
Product|Tomcat 7 |Tomcat Modules
--
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 48373] Can not get clients from TomcatBayeux
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48373
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-12-11 04:18:05 GMT ---
Thanks for the report and your suggested fix. Your fix makes sense to me so I
have applied it to trunk. Many thanks.
--
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