-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Dave Syer opened SPR-17333 and commented
In ClassUtils.isPresent()
we prefer ClassLoader.loadClass()
to Class.forName()
, even though there is a form of Class.forName()
that includes the ClassLoader
, and also provides the option to not initialize the class (which seems ideal for isPresent()
).
(N.B. in Substrate VM Class.forName(className, false, currentLoader)
works, for a class that is present, whereas classLoader.loadClass()
fails.)
Affects: 5.1 GA
Issue Links:
- ClassUtils.forName fails to load class from ContextTypeMatchClassLoader [SPR-17452] #21984 ClassUtils.forName fails to load class from ContextTypeMatchClassLoader
Referenced from: commits spring-projects/spring-boot@b1d4cf4
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement