Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot autowire individual constructor argument in @Nested test class [SPR-16653] #21194

Closed
spring-projects-issues opened this issue Mar 28, 2018 · 1 comment
Assignees
Labels
in: test Issues in the test module type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 28, 2018

Sam Brannen opened SPR-16653 and commented

Overview

Due to a bug in javac in JDK versions prior to JDK 9, it is currently impossible to use @Autowired, @Qualifier, and @Value on individual constructor arguments if the constructor is in a JUnit Jupiter @Nested test class (i.e., an inner class) and the code was compiled using JDK < 9.

See #21193 and JUnit Jupiter issue #1345 for further details.

Deliverables

  • Ensure that @Autowired, @Qualifier, and @Value can be used on individual constructor arguments in @Nested test classes.

Affects: 5.0 GA

Issue Links:

Referenced from: commits 9244090

@spring-projects-issues
Copy link
Collaborator Author

Sam Brannen commented

Fixed in master in the following commit:

9244090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants