Skip to content

@Resource injection regression with scope prototype [SPR-9684] #14318

Closed

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-9684 and commented

The spring test infrastructure no longer honour prototype-scoped beans if they are injected wiht @Resource. It does work with @Autowired.

We suspect that #13814 may have brought this regression.

To reproduce, extract the zip and run the tests (either from your IDE or on the command line with Maven). You can validate the regression by running the following command:

mvn clean install -Dspring.version=3.1.1.RELEASE

Affects: 3.1.2

Attachments:

Issue Links:

1 votes, 2 watchers

Activity

  1. spring-projects-issues commented on Aug 14, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    Sorry, this is a duplicate of #14261

  2. added
    type: bug
    in: test
    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: corein: teststatus: duplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions