Fix #5169 - Mark ArgumentsProvider provideArguments(ParameterDeclarations) as MAINTAINED instead of EXPERIMENTAL. #5177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #5169
This PR updates the API status of the new overload of
ArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext)
from EXPERIMENTAL to MAINTAINED.
Background
In JUnit Jupiter 6.0.1, the new provideArguments(ParameterDeclarations, ExtensionContext) method is marked as @API(status = EXPERIMENTAL) while the older provideArguments(ExtensionContext) method is already deprecated.
This creates a mismatch:
As noted in the issue discussion, the maintainers confirmed that the new API is stable and should be treated as maintained starting with JUnit 6.0.2.
Summary of Changes
Update the annotation on
provideArguments(ParameterDeclarations parameters, ExtensionContext context)
from:
@API(status = EXPERIMENTAL, since = "6.0")to:
@API(status = MAINTAINED, since = "6.0")This aligns the API status with the maintainer guidance and resolves the confusion around the intended stability level of the new method.
Rationale