This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.5.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.5.x-fixes by this push:
new 2f62c5d62f Fix JDK-11 API usage (post-merge issue)
2f62c5d62f is described below
commit 2f62c5d62fe6eae1a1bda1741e8be0e0a6b88628
Author: Andriy Redko <[email protected]>
AuthorDate: Wed Apr 19 13:51:00 2023 -0400
Fix JDK-11 API usage (post-merge issue)
---
.../transport/http/asyncclient/hc5/CXFHttpAsyncResponseConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncResponseConsumer.java
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncResponseConsumer.java
index 5808de4870..f59b566b33 100644
---
a/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncResponseConsumer.java
+++
b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/CXFHttpAsyncResponseConsumer.java
@@ -83,7 +83,7 @@ public class CXFHttpAsyncResponseConsumer implements
AsyncResponseConsumer<Boole
break;
}
- Thread.onSpinWait();
+ Thread.yield();
}
}