Usage of ClassLoader.loadClass() in ConfigurationClassParser [SPR-17253] #21786
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Dave Syer opened SPR-17253 and commented
In
ConfigurationClassParser
we explicitly callClassLoader.loadClass()
which is a bit odd, given that we haveClassUtils
to do that work for us, and that is the "normal" pattern in Spring internally. It wouldn't affect any regular apps if we refactored to useClassUtils
(I tried it and the tests all pass). It would affect AOT native images in a positive way: theClassLoader
is null in that case, butClass.forName()
actually works.Affects: 5.0.8
Issue Links:
Referenced from: commits ad54472, c803ad7
The text was updated successfully, but these errors were encountered: