You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Classification of ClassCastExceptions doesn't work in JDK 11 (OpenJDK) [SPR-17093] #21630
in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug
SimpleApplicationEventMulticaster.matchesClassCastMessage fails to match cases it should match in JDK 11.
The reason seems to be that instead of starting with the class name or module/class name the message now starts with "class " followed by the class name, which (I think) is the result of the Class.toString() method.
I've added a starts-with check for the full Class.toString() representation... backporting this to 5.0.9 and 4.3.19 for JDK 11 runtime compatibility there.
in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug
Activity
spring-projects-issues commentedon Jul 26, 2018
Juergen Hoeller commented
So they changed the
ClassCastExceptionmessage twice in a year... and still don't bother exposing the affectedClassreference :-(spring-projects-issues commentedon Jul 26, 2018
Juergen Hoeller commented
I've added a starts-with check for the full
Class.toString()representation... backporting this to 5.0.9 and 4.3.19 for JDK 11 runtime compatibility there.