Skip to content

Commit

Permalink
HHH-13682 Do not set net.bytebuddy.experimental=true in tests anymore
Browse files Browse the repository at this point in the history
It's no longer necessary since we upgraded to byte-buddy 1.10.2,
and it causes bytecode to be converted from Java 14 to Java 12 in some
cases (I don't know why).
  • Loading branch information
yrodiere authored and Sanne committed Apr 14, 2020
1 parent 0cdf4c1 commit 96f7870
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions gradle/java-module.gradle
Expand Up @@ -208,18 +208,6 @@ processTestResources {
}
}

// Enable the experimental features of ByteBuddy with JDK 12+
test {
//Only safe to attempt to parse the version as an integer since JDK11
if ( JavaVersion.current().isJava11Compatible() ) {
int majorJVMVersionInt = Integer.valueOf(JavaVersion.current().toString());
//Set the -Dnet.bytebuddy.experimental=true property only when we need it:
if (majorJVMVersionInt >= 12) {
systemProperty 'net.bytebuddy.experimental', true
}
}
}

test {
if ( project.findProperty( 'log-test-progress' )?.toString()?.toBoolean() ) {
// Log a statement for each test.
Expand Down

0 comments on commit 96f7870

Please sign in to comment.