-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
the issue of doCreateBean #34442
Comments
This report is quite similar to #29756 Rather than reading the code and thinking about potential issues, we would rather look at a concrete example where you can demonstrate a problem. |
I didn't say that this line of code has execution problems. It's just that after considering the context, I felt a bit confused about this line. I have read #29756, and my reply and question are also based on #29756. The replies in #29756 at least explained some of the reasons, but your reply doesn't provide any substantial explanation. |
Thanks but we'd rather spend time on actual issues and enhancements reported by the community. Explaining the codebase line by line is not our top priority. If you think there is a behavior problem with this code, you can probably illustrate it with a simple application and share it with us. |
Please set a breakpoint at this line of code in AbstractAutowireCapableBeanFactory.java: exposedObject = earlySingletonReference;. Add a breakpoint condition: beanName.contains("serviceA"). Then, compare the execution results with the MyProcessor class commented out and not commented out. |
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#doCreateBean
exposedObject = earlySingletonReference;
If this assignment is indeed not redundant, it suggests that the custom getEarlyBeanReference method results in the reference no longer pointing to the final, fully initialized bean. Consequently, would the subsequent execution of registered bean destruction callbacks become unnecessary in this scenario?
The text was updated successfully, but these errors were encountered: