fix(client-java): keep Temurin 21 toolchain, auto-provision instead of bumping to 26

This commit is contained in:
Joseph Doherty
2026-06-01 07:20:04 -04:00
parent fe7d1ce1ec
commit ba82afe669
3 changed files with 6 additions and 5 deletions
@@ -1,7 +1,6 @@
package com.zb.mom.ww.mxgateway.client;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import mxaccess_gateway.v1.MxAccessGatewayGrpc;
import mxaccess_gateway.v1.MxaccessGateway.OpenSessionRequest;
@@ -25,8 +24,6 @@ final class GeneratedContractSmokeTests {
@Test
void javaTwentyOneToolchainRunsTests() {
// Accept Java 21 or later; locally macOS has JDK 26 (only JDK 26 is installed).
assertTrue(Runtime.version().feature() >= 21,
"expected Java 21+ but got " + Runtime.version());
assertEquals(21, Runtime.version().feature());
}
}