ClassUtils could use long form of Class.forName [SPR-17333] #21867
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Dave Syer opened SPR-17333 and commented
In
ClassUtils.isPresent()
we preferClassLoader.loadClass()
toClass.forName()
, even though there is a form ofClass.forName()
that includes theClassLoader
, and also provides the option to not initialize the class (which seems ideal forisPresent()
).(N.B. in Substrate VM
Class.forName(className, false, currentLoader)
works, for a class that is present, whereasclassLoader.loadClass()
fails.)Affects: 5.1 GA
Issue Links:
Referenced from: commits spring-projects/spring-boot@b1d4cf4
The text was updated successfully, but these errors were encountered: