Skip to content

Commit

Permalink
Use "--add-opens" to allow test to run on java 16+ (#5290)
Browse files Browse the repository at this point in the history
* Use "--add-opens" to allow test to run on java 16+

* Update instrumentation/executors/javaagent/build.gradle.kts

Co-authored-by: Lauri Tulmin <[email protected]>

* Update instrumentation/executors/javaagent/build.gradle.kts

Co-authored-by: Anuraag Agrawal <[email protected]>
Co-authored-by: Lauri Tulmin <[email protected]>
  • Loading branch information
3 people authored Feb 3, 2022
1 parent 6f38a42 commit a3ce5d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instrumentation/executors/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ muzzle {
tasks.withType<Test>().configureEach {
jvmArgs("-Dotel.instrumentation.executors.include=ExecutorInstrumentationTest\$CustomThreadPoolExecutor")
jvmArgs("-Djava.awt.headless=true")
// ExecutorInstrumentationTest tess internal JDK class instrumentation
jvmArgs("--add-opens=java.base/java.util.concurrent=ALL-UNNAMED")
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
}

0 comments on commit a3ce5d5

Please sign in to comment.