Upgrade to Java 25 #12

Merged
stne3960 merged 2 commits from java-25 into main 2025-12-04 14:57:24 +01:00
4 changed files with 4 additions and 7 deletions

Binary file not shown.

View File

@ -18,7 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>24</java.version>
<java.version>25</java.version>
<springdoc.version>2.8.6</springdoc.version>
</properties>

View File

@ -28,7 +28,7 @@ public class TestController {
@RequestMapping
public String helloWorld() throws InterruptedException, ExecutionException {
// Pick the scope based on the desired behaviour
try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
try (var scope = StructuredTaskScope.open()) {
Subtask<String> nameTask = scope.fork(() -> {
String name = restClient.get()
.uri("/test/name")
@ -58,9 +58,6 @@ public class TestController {
// Wait for all tasks to complete (either success or failure)
scope.join();
// Error if any task failed (or check each individual subtask for partial responses)
scope.throwIfFailed();
return "Hello, I am %s and my email is %s. My Daisy profile is: %s".formatted(
nameTask.get(),
emailTask.get(),

View File

@ -1,4 +1,4 @@
FROM eclipse-temurin:24 AS build
FROM eclipse-temurin:25 AS build
WORKDIR /build
@ -17,7 +17,7 @@ RUN ./mvnw package \
--fail-fast \
-DskipTests
FROM eclipse-temurin:24 AS runtime
FROM eclipse-temurin:25 AS runtime
WORKDIR /bff