- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Open
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Description
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#doCreateBean
if (earlySingletonExposure) {
			Object earlySingletonReference = getSingleton(beanName, false);
			if (earlySingletonReference != null) {
				if (exposedObject == bean) {
					exposedObject = earlySingletonReference;
				}
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?
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on