arextest / arex-agent-java

Lightweight Java agent for traffic capture and replay, enhancing testing and debugging.
https://doc.arextest.com/
Apache License 2.0
416 stars 82 forks source link

fix: thread context classloader propagation in forkjoinpool #466

Closed YongwuHe closed 1 month ago

YongwuHe commented 1 month ago

Before jdk9 ForkJoinPool.common() returns an Executor with a ClassLoader of your main Thread, in Java 9 this behave changes , and return an executor with the system jdk system classloader. https://stackoverflow.com/questions/49113207/completablefuture-forkjoinpool-set-class-loader

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud