Closed
Description
Our AOT efforts has required some minor refinements in the way bean definitions are created programmatically. For an independent bean that doesn't have a parent (very common), RootBeanDefinition
is a better fit, in particular as it allows to capture the resolved type early.
Looking at the Javadoc of GenericBeanDefinition
it sounds like it is a better candidate for pretty much everything. It would be nice to rephrase that so that it is more accurate to the current situation.