-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Closed
Copy link
Labels
Milestone
Description
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:
- Annotation lookup on parameter in inner class constructor fails when using javac from JDK versions prior to 9 [SPR-16652] #21193 Annotation lookup on parameter in inner class constructor fails when using javac from JDK versions prior to 9 ("depends on")
Referenced from: commits 9244090