I am using Resin 4.0.47, and i found a bug in the class com.caucho.server.webapp.WebApp, the method
/**
* Returns true if a listener with the given type exists.
*/
public boolean hasListener(ArrayList<?> listeners, Class<?> listenerClass)
{
for (int i = 0; i < listeners.size(); i++) {
Object listener = _listeners.get(i);
if (listener.getClass().equals(listenerClass)) {
return true;
}
}
return false;
}
the line "Object listener = _listeners.get(i);", the variable should be listeners, not the _listeners, is not it? how to fix it?