Skip to content

Consider generics on ConfigurationPropertiesBinding beans #26034

Open
@philwebb

Description

@philwebb

Currently ConversionServiceDeducer registers converters and formatters using only the bean instance. This means that we don't consider generics on the method. See #24891 (comment) for one example of where this has tripped us up.

We might be able to get the bean definition and call getResolvableType() to obtain the method defined generics. We'd then probably need our own adapters (similar to the ones in GenericConversionService) to expose the method generics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions