We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd02309 commit 68f54a1Copy full SHA for 68f54a1
http-client/src/main/java/io/avaje/http/client/DHttpClientBuilder.java
@@ -105,7 +105,7 @@ private java.net.http.HttpClient defaultClient() {
105
}
106
if (executor != null) {
107
builder.executor(executor);
108
- } else {
+ } else if (Integer.getInteger("java.specification.version") >= 21) {
109
try {
110
ExecutorService virtualExecutorService =
111
(ExecutorService)
@@ -117,7 +117,7 @@ private java.net.http.HttpClient defaultClient() {
117
.invokeExact();
118
builder.executor(virtualExecutorService);
119
} catch (Throwable t) {
120
- // Nothing to do
+ // Impossible
121
122
123
if (proxy != null) {
0 commit comments