Does WireDoctor detect all bean cycles? #31
Answered
by
ddsha441981
ddsha441981
asked this question in
Q&A
|
My app starts fine but I suspect there are circular dependencies resolved by Spring silently. Will WireDoctor find every cycle, including ones that would crash the app? |
Answered by
ddsha441981
Jul 29, 2026
Replies: 1 comment
|
Honest answer: it finds silently-resolved cycles, not every theoretically possible one. Three cases:
This is documented in the README's Epistemic Honesty section and KNOWN_ISSUES.md — WireDoctor prefers honest heuristics over false certainty. Practical upshot: pair the cycle report with |
0 replies
Answer selected by
ddsha441981
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Honest answer: it finds silently-resolved cycles, not every theoretically possible one. Three cases:
BeanCurrentlyInCreationExceptionbefore WireDoctor can run — nothing to report, Spring already told you.getDependenciesForBean()) finds cycles that succeed silently and reports them as structural design smells — pluslazySuggestionsranking which@Lazybreaks the most cycles with the smallest blast radius.allow-circular-references=true): cycles resolved via Spring's 3-level cache (ea…