Skip to content

Commit e081684

Browse files
committed
Avoid ByteBuddy from trying to use Unsafe
1 parent bdcb7ee commit e081684

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.testing-conventions.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ tasks.withType<Test>().configureEach {
110110
systemProperty("log4j2.julLoggerAdapter", "org.apache.logging.log4j.jul.CoreLoggerAdapter")
111111
// Avoid overhead (see https://logging.apache.org/log4j/2.x/manual/jmx.html#enabling-jmx)
112112
systemProperty("log4j2.disableJmx", "true")
113+
// https://github.com/raphw/byte-buddy/issues/1803
114+
systemProperty("net.bytebuddy.safe", true)
113115
// Required until ASM officially supports the JDK 14
114116
systemProperty("net.bytebuddy.experimental", true)
115117
if (buildParameters.testing.enableJFR) {

0 commit comments

Comments
 (0)