@ -160,7 +162,13 @@ public class SimpleApplicationEventMulticaster extends AbstractApplicationEventM
@@ -160,7 +162,13 @@ public class SimpleApplicationEventMulticaster extends AbstractApplicationEventM
}
}
else{
listener.onApplicationEvent(event);
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);