Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1366
Vert.x 5 (Quarkus 4) removed the callback variants of
write,sendandsendBuffer, so streaming failed withNoSuchMethodErrorinSseResponseWriter. This switches to theFuture-returning variants, which exist in both Vert.x 4.5 and 5, so nothing changes on Quarkus 3:SseResponseWriter:response.write(data).onComplete(...), same handling as before.VertxA2AHttpClient:request.sendBuffer(bodyBuffer).onComplete(...)andrequest.send().onComplete(...).VertxA2AHttpClient: removedPlainBodyWriteStream. Nothing creates it, and it overrideswrite(Buffer, Handler)andend(Handler), which no longer exist in Vert.x 5.SseResponseWriterTest: the mocks stubwrite(Buffer)returning a succeeded or failedFuture.writeFails_failsRoutingContextstill covers the failure path.Checked locally on JDK 25 with
-pl reference/common,extras/http-client-vertx -am:sendBuffer/sendandPlainBodyWriteStreamSseResponseWriterTest7,VertxA2AHttpClient*Test+VertxSseParserTest81 passFor the Quarkus 4 build I had to leave
tests/multiversion/jsonrpcout of the reactor locally: Quarkus 4's BOM no longer managesio.quarkus:quarkus-junit5-mockito, so Maven can't read that module. That's separate from this change, but it'll come up in the Quarkus 4 bump (#1375).