Add testcase for dynamic tests and Jackson classloading #43766
Merged
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.
#10435 shared a reproducer, but we didn't include the reproducer in our codebase when we did the fix. This strikes me as the kind of thing that could regress, so I've added it. I couldn't definitively confirm that the reproducer, as I've added it to the codebase, fails on 1.15.2.Final, because the shape of our codebase has changed too much. The risk is that classloading is sometimes different in a
@QuarkusTest
executed as part of the main build and one done in a standaloneresources
project, and this is a classloading problem. But the standalone sub-projects are expensive to execute, and since we didn't even have a test before, I didn't want to slow down our build too much, especially if the top-level test actually would catch the problem.I could confirm that in a standalone project, the reproducer test case failed for 1.15.2.Final and passes now, which I think is a good enough level of confidence in the test case.
Fixes #10435 (technically speaking, it doesn't, since #10435 is already fixed, but this adds a test case, which means there's no barrier at all to closing #10435 once this merges).