Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possible to fetch an uninitialized Bean when cycling dependencies #31261

Closed
nineya opened this issue Sep 18, 2023 · 2 comments
Closed

It is possible to fetch an uninitialized Bean when cycling dependencies #31261

nineya opened this issue Sep 18, 2023 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@nineya
Copy link

nineya commented Sep 18, 2023

Following up on the latest comments in #25667,Due to the lack of thread-safe judgment for earlySingletonObjects in the getSingleton(String beanName, boolean allowEarlyReference) method, the method may return an uninitialized Bean. And without any processing thereafter, spring returns the uninitialized bean directly to the client that calls the BeanFactory.getBean method.

@nineya
Copy link
Author

nineya commented Sep 18, 2023

Screenshot of the cause of the problem.
image

@snicoll
Copy link
Member

snicoll commented Sep 18, 2023

There's no need to create both an issue and a PR as one superseded the other.

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
@snicoll snicoll added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants