diff --git a/Jenkinsfile b/Jenkinsfile
index f5c6244aded..64e2d4ec395 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -185,6 +185,9 @@ stage('Configure') {
// even if we don't use these features, just enabling them can cause side effects
// and it's useful to test that.
new JdkBuildEnvironment(version: '19', testCompilerTool: 'OpenJDK 19 Latest',
+ testLauncherArgs: '--enable-preview',
+ condition: TestCondition.AFTER_MERGE),
+ new JdkBuildEnvironment(version: '20', testCompilerTool: 'OpenJDK 20 Latest',
testLauncherArgs: '--enable-preview',
condition: TestCondition.AFTER_MERGE)
],
diff --git a/pom.xml b/pom.xml
index 7406fc0d531..ca80587ec9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2513,6 +2513,25 @@
+
+ testWithJdk20
+
+
+ java-version.test.release
+ 20
+
+
+
+
+
+ -Djdk.attach.allowAttachSelf=true
+ -Dnet.bytebuddy.experimental=true
+
+
+ true
+
+
+
compiler-eclipse