Skip to content

ListableBeanFactory#getBeanNamesForType(ResolvableType) fails to return generic @Bean methods [SPR-14118] #18690

Closed

Description

@spring-projects-issues

Matt Benson opened SPR-14118 and commented

My branch includes:

testcases and (possibly naive) implementation as a starting point to discuss the shortcomings of ListableBeanFactory#getBeanNamesForType(ResolvableType) with regard to @Bean methods and ResolvableType arguments that represent parameterized types


Affects: 4.2.5

Reference URL: https://github.com/mbenson/spring-framework/tree/beanMethodsOfType

Issue Links:

1 votes, 3 watchers

Activity

  1. spring-projects-issues commented on Dec 24, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This looks like a duplicate of #19578 at this point: Such matching against generic factory method return types didn't work in the type prediction phase, which we fixed in 4.3.5. If there is anything left beyond this, please reopen this issue.

  2. added
    type: enhancement
    in: core
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: duplicatetype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions