Closed
Description
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:
- EventListenerMethodProcessor resolves classes of lazy beans causing NoClassDefFoundError [SPR-13712] #17619 EventListenerMethodProcessor resolves classes of lazy beans causing NoClassDefFoundError
Referenced from: commits 2fd691b, f657952
Backported to: 4.2.7