Skip to content

Conversation

@joschi
Copy link
Member

@joschi joschi commented May 22, 2025

Java logs warnings for dynamically loaded agents since JDK 21 (JEP 451). This PR adds the byte-buddy-agent to the arg line of the surefire plugin to prevent Mockito from dynamically loading the agent.

Fixes #9971
Refs #10109

@joschi joschi added this to the 5.0.0 milestone May 22, 2025
@joschi joschi requested a review from a team as a code owner May 22, 2025 21:54
Java logs warnings for dynamically loaded agents since JDK 21 ([JEP 451](https://openjdk.org/jeps/451)). This PR adds the byte-buddy-agent to the arg line of the surefire plugin to prevent Mockito from dynamically loading the agent.

Fixes #9971
Refs #10109
@sonarqubecloud
Copy link

@joschi joschi merged commit 44c74b7 into release/5.0.x May 23, 2025
17 checks passed
@joschi joschi deleted the pr-10109-5.0.x branch May 23, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants