@ -160,8 +162,14 @@ public class SimpleApplicationEventMulticaster extends AbstractApplicationEventM
@@ -160,8 +162,14 @@ public class SimpleApplicationEventMulticaster extends AbstractApplicationEventM
}
}
else{
try{
listener.onApplicationEvent(event);
}
catch(ClassCastExceptionex){
// Possibly a lambda-defined listener which we could not resolve the generic event type for
LogFactory.getLog(getClass()).debug("Non-matching event type for listener: "+listener,ex);