Repository navigation
Conversation
Attach a compact suppressed diagnostic without changing the original failure or test name. Unwrap supported generator wrappers with bounded traversal and preserve assertions when diagnostic metadata fails. Keep JVM lifecycle code excluded from GWT and J2KT, and cover diagnostic edge cases. Refs google#7585
Handle nonfatal Error subclasses from third-party generators without replacing the original assertion. Continue propagating VirtualMachineError and ThreadDeath, and add regressions for all three paths. Refs google#7585
This branch has not been deployed
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.
Refs #7585.
Attach a stackless suppressed diagnostic containing the suite and generator class to JUnit 3 assertion failures. Preserve the original failure object and existing suppressed context; successful tests and non-assertion failures keep their existing behavior.
Unwrap size and derived generators with a bounded traversal, including cyclic, fresh-wrapper and null-delegate cases. Metadata failures do not mask the original assertion;
VirtualMachineErrorandThreadDeathcontinue to propagate.Includes 14 focused regression tests. Opaque serialization wrappers may still identify a testlib generator rather than the caller's generator; test names and runner UI are unchanged. The JUnit 3 lifecycle additions are excluded from GWT/J2KT; the Android mirror is left to the project's normal synchronization.
Validation: focused isolated JUnit run against current upstream-derived classes: 3,788 executions passed on Windows/Temurin 17. The same run passed on Linux/Temurin 17. Focused Maven reactor validation also passed: 3,788 executions, zero failures/errors/skips, with Animal Sniffer passing (compiler JDK 27, runtime Temurin 17). Full guava-tests, Android and GWT/J2KT suites were not run.