Skip to content

Unloadable nested classes in @Import should not fail if associated conditions exclude them anyway [SPR-11844] #16463

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-11844 and commented

If I add a @Configuration via an ImportSelector its nested classes are not loaded if they are @Conditional and the condition does not match (i.e. as expected). If you @Import the same class directly Spring loads the nested classes and there can be runtime errors (e.g. ClassNotFound).


Affects: 4.0.5

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions