This is an automated email from the ASF dual-hosted git repository.

raboof pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new d5f56da90 use Java API in sample (#1178)
d5f56da90 is described below

commit d5f56da907257296f0399cc3ce027c4be5d7671d
Author: PJ Fanning <[email protected]>
AuthorDate: Sat Jul 25 11:47:58 2026 +0100

    use Java API in sample (#1178)
---
 .../test/java/org/apache/pekko/http/javadsl/server/JavaTestServer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/http-tests/src/test/java/org/apache/pekko/http/javadsl/server/JavaTestServer.java
 
b/http-tests/src/test/java/org/apache/pekko/http/javadsl/server/JavaTestServer.java
index 42c22be96..7c66b737e 100644
--- 
a/http-tests/src/test/java/org/apache/pekko/http/javadsl/server/JavaTestServer.java
+++ 
b/http-tests/src/test/java/org/apache/pekko/http/javadsl/server/JavaTestServer.java
@@ -91,7 +91,7 @@ public class JavaTestServer {
                         "scala",
                         () ->
                             completeOKWithFutureString(
-                                org.apache.pekko.dispatch.Futures.failed(new 
Exception("Boom!"))))
+                                CompletableFuture.failedFuture(new 
Exception("Boom!"))))
                     .orElse(
                         path(
                             "java",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to