EventListenerMethodProcessor resolves classes (by MethodIntrospector) of lazy beans causing NoClassDefFoundError [SPR-14330] #18902
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
David Rain opened SPR-14330 and commented
After upgrading from 4.1.x to 4.2.5 and 4.2.6 we encounter the same problem mentioned in #17619.
It seems it still persist... in another piece of code.
org.springframework.context.event.EventListenerMethodProcessor#processBean calls MethodIntrospector#selectMethods which in turn calls ReflectionUtils#doWithMethods. In this method there's a call to getDeclaredMethods which fires NoClassDefFoundError (during reflection) even on lazy beans. This in turn wraps to BeanInitializationException and is fired out.
Affects: 4.2.6
Issue Links:
Referenced from: commits 2fd691b, f657952
Backported to: 4.2.7
The text was updated successfully, but these errors were encountered: