ScriptFactoryPostProcessor#prepareScriptBeans is invoked twice and overrides bean definitions #32526
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: invalid
An issue that we don't feel is valid
type: task
A general task
In our efforts to get rid of bean overriding in the core framework, I've noticed that
ScriptFactoryPostProcessor#prepareScriptBeans
is invoked twice, that is:postProcessBeforeInstantiation
which looks the regular callpredictBeanType
which looks a pre-init step to provide the right outcomeIdeally, this would only run once. Checking for the presence of
scriptFactoryBeanName
should be enough.The text was updated successfully, but these errors were encountered: