GenericApplicationContext can be configured with a custom ClassLoader as well as with a custom ResourceLoader. When only configured with a custom ResourceLoader, that loader's getClassLoader() is not taken into account. We should pick up that ClassLoader over GenericApplicationContext's default if not explicitly overridden through a setClassLoader call.
Affects: 4.3.2
Issue Links:
#19174 AnnotationConfigApplicationContext does not consistently apply custom ClassLoader
Juergen Hoeller opened SPR-14626 and commented
GenericApplicationContext
can be configured with a customClassLoader
as well as with a customResourceLoader
. When only configured with a customResourceLoader
, that loader'sgetClassLoader()
is not taken into account. We should pick up thatClassLoader
overGenericApplicationContext
's default if not explicitly overridden through asetClassLoader
call.Affects: 4.3.2
Issue Links:
Referenced from: commits 405e74b, 74bf659
The text was updated successfully, but these errors were encountered: