Repository navigation
Run non-inner @Nested classes to restore backward compatibility - #4700
Merged
marcphilipp merged 1 commit intoJul 1, 2025
Merged
Conversation
Since the introduction of discovery issues in 5.13, top-level and static member classes annotated with `@Nested` were no longer executed because the validation logic excluded them. This commit restores the old behavior and improves the generated discovery issues for such cases. Fixes #4686.
marcphilipp
force-pushed
the
marc/4686-run-invalid-non-inner-nested-classes-again
branch
from
June 30, 2025 12:26
ad5aba5 to
3d2b87c
Compare
marcphilipp
marked this pull request as ready for review
June 30, 2025 12:27
Member
|
How is this related to |
Member
#4622 is about actually running such static nested classes as part of an overall nested structure, like is currently the case for non-static nested classes -- for parent Whereas, this issue is simply about allowing static nested classes that are inappropriately annotated with |
sormuras
approved these changes
Jul 1, 2025
marcphilipp
deleted the
marc/4686-run-invalid-non-inner-nested-classes-again
branch
July 1, 2025 08:22
marcphilipp
added a commit
that referenced
this pull request
Jul 1, 2025
) Since the introduction of discovery issues in 5.13, top-level and static member classes annotated with `@Nested` were no longer executed because the validation logic excluded them. This commit restores the old behavior and improves the generated discovery issues for such cases. Fixes #4686. (cherry picked from commit 442aac1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
Since the introduction of discovery issues in 5.13, top-level and static
member classes annotated with
@Nestedwere no longer executed becausethe validation logic excluded them. This commit restores the old
behavior and improves the generated discovery issues for such cases.
Fixes #4686.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations