From 48fb17892a4f8cdcdd84f910845920a1a95c5037 Mon Sep 17 00:00:00 2001 From: soloturn Date: Sat, 22 Aug 2026 12:49:57 +0200 Subject: [PATCH] build: bump mockito-core to 5.23.0 for JDK 26 support Mockito 5.6.0 bundles ByteBuddy 1.x old enough that mock creation throws immediately on JDK 26+: IllegalArgumentException: Java 26 (70) is not supported by the current version of Byte Buddy which officially supports Java 21 (65) The error message itself suggests -Dnet.bytebuddy.experimental=true as a stopgap, but that's exactly what it says: a flag for running ahead of official support, not something to bake into the build for every test run. 5.23.0 (latest) bundles ByteBuddy 1.17.7, which supports JDK 26 natively - confirmed by running runInteractiveTest end to end with no flag: the mock now constructs fine, and the run gets to a real GlobalProperties issue several stages further in (see #56, already fixed there and elsewhere - not touched here to keep this to one concern). Co-Authored-By: Claude Sonnet 5 --- cr-core/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr-core/build.gradle.kts b/cr-core/build.gradle.kts index 7fcf709..187eef1 100644 --- a/cr-core/build.gradle.kts +++ b/cr-core/build.gradle.kts @@ -69,7 +69,7 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.1") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1") testRuntimeOnly("org.junit.platform:junit-platform-launcher") - testImplementation("org.mockito:mockito-core:5.6.0") + testImplementation("org.mockito:mockito-core:5.23.0") testImplementation("org.slf4j:slf4j-api:2.0.18") testRuntimeOnly("ch.qos.logback:logback-classic:1.6.0")