Skip to content

autowiring doesn't match generics [SPR-5546] #10217

Closed
@spring-projects-issues

Description

@spring-projects-issues

Scott Battaglia opened SPR-5546 and commented

I've created my own PersonFactory class that implements ObjectFactory<Person> and its labeled with @Component. I have a controller that has a property "private ObjectFactory<Person>" with autowired=true

There is only one ObjectFactory<Person>.

During bootstrap Spring can't seem to match the two up. It complains there is more than one ObjectFactory.


Affects: 3.0 M2

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions