Project: Tomcat
Bug 48373 Can not get clients from TomcatBayeux
Reported: 2009-12-11 00:22:52 | Status: resolved fixed

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])); }

Files changed in fix:
modules/bayeux/java/org/apache/tomcat/bayeux/TomcatBayeux.java