Closed
Description
Phil Webb opened SPR-15838 and commented
Originally raised against Spring Boot, but I think this might be a Framework issue.
The SimpleApplicationEventMulticaster
deals with lambda-defined implementations by catching any ClassCastException
. However, if an ErrorHandler
has been set a different code path runs that does not catch the exception.
The relevant code is here.
Affects: 4.3.10, 5.0 RC3
Issue Links:
- Wrong detection of event type on ApplicationListener<> when using lambdas (ClassCast Exception) [SPR-14109] #18681 Wrong detection of event type on ApplicationListener<> when using lambdas (ClassCast Exception)
- SimpleApplicationEventMulticaster should not rely on ClassCastException having a message [SPR-15145] #19711 SimpleApplicationEventMulticaster should not rely on ClassCastException having a message
Referenced from: commits dd2bbcb, f948742
1 votes, 2 watchers