Skip to content

Try to remove generic on BeanInstanceSupplier #28875

Closed as not planned
Closed as not planned
@snicoll

Description

@snicoll

This is a follow-up of what we've discovered as part of #28748

If a BeanDefinition has a ResolvableType 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 the BeanInstanceSupplier 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently applytheme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions