@ExtendWith
cannot be used as a repeatable annotation directly on fields and parameters
#4059
Closed
3 tasks done
Overview
When I introduced support for declarative extension registration on fields and parameters in JUnit Jupiter 5.8, I neglected to sync the
@Target
declaration for@Extensions
with the new supported targets for@ExtendWith
.Consequently, it is possible to declare a single
@ExtendWith
annotation on a field or parameter, but it is not currently possible to declare multiple@ExtendWith
annotations directly on a field or parameter.For example, the following currently fails to compile.
Similarly, the following also fails to compile.
Related Issues
Deliverables
@ExtendWith
can be used as a repeatable annotation directly on fields and parametersArchUnitTests
The text was updated successfully, but these errors were encountered: