Skip to content

Use "cyclic" instead of "recursive" in BeanDefinitionStoreException "Detected recursive loading of class path resource" [SPR-6755] #11421

Closed
@spring-projects-issues

Description

@spring-projects-issues

Henno Vermeulen opened SPR-6755 and commented

Spring correctly detects cycles in <import> statements in XML configuration files. However it responds with the message:

"Detected RECURSIVE loading of class path resource..."

This is a confusing message because it is perfectly fine to have a hierarchical structure of imports (which can be recursively loaded).

(At least it confused me for almost an hour... Finally it turned out to be an Eclipse bug: it did not copy my correct changes in the .xml files in the source directory to the target directory so it used older .xml files which did contain a cycle of <import> statements...)


Referenced from: commits 0f75210

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