ComponentScanBeanDefinitionParser::parseTypeFilters should not fail on ClassNotFoundException [SPR-16356] #20903
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Yanming Zhou opened SPR-16356 and commented
For example, parent project have such configuration to filter mvc and websocket component from root ApplicationContext, let them instantiated by child ApplicationContext
Some projects reuse such configuration and without spring-websocket dependency, it will throws ClassNotFoundException.
I think spring should be lenient here, if class not present and the filter rule should ignore, at least "annotation" and "assignable" should do.
Affects: 4.3.13, 5.0.2
Referenced from: commits 092b3d4, 4adc820
Backported to: 4.3.14
The text was updated successfully, but these errors were encountered: