Skip to content

Commit a97d163

Browse files
Replace VMError with null assignment.
1 parent 7562016 commit a97d163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_java_util_concurrent_CompletableFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class CompletableFutureJDK21FieldHolder {
119119
ASYNC_POOL = SubstrateUtil.cast(new Target_java_util_concurrent_CompletableFuture_ThreadPerTaskExecutor(), Executor.class);
120120
}
121121
} else {
122-
throw VMError.shouldNotReachHere("This field holder should only be reachable on JDK 21 or earlier.");
122+
ASYNC_POOL = null;
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)