Skip to content

Commit 33079d3

Browse files
committed
Fix Java launcher used in CI tests being downgraded by mistake
1 parent 4371308 commit 33079d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

local-build-plugins/src/main/java/org/hibernate/orm/toolchains/JdkVersionConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ public static JdkVersionConfig createVersionConfig(
168168
testReleaseVersion = maxSupportedJdkVersion;
169169
}
170170

171-
testLauncherVersion = testReleaseVersion;
171+
// This must not be downgraded like we do for the "release version",
172+
// first because we don't need to,
173+
// second because we don't necessarily have a lower version of the JDK available on the machine.
174+
testLauncherVersion = testCompilerVersion;
172175

173176
return new JdkVersionConfig(
174177
true,

0 commit comments

Comments
 (0)