Try to remove generic on BeanInstanceSupplier #28875
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
This is a follow-up of what we've discovered as part of #28748
If a
BeanDefinition
has aResolvableType
that contains a generic we'll generate code for the raw class. Getting generics right is going to be quite hard so we're wondering if we shouldn't attempt to make it less constrained. Removing the generic and creating theBeanInstanceSupplier
in the main method would be a first good step.The instance-specific method (if any) could then take care of the bean instantiation and any post processing that should apply, if necessary.
The text was updated successfully, but these errors were encountered: