Skip to content

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Jun 9, 2025

RESTEasy Reactive Client generates a $$CDIWrapper class for each MP RestClient interface, which is then discovered by ArC. The generated classes however used to not declare any exceptions on methods, even if the interface did declare some. This is wrong at least in case the bean is intercepted (for example using MP Fault Tolerance), because undeclared checked exceptions are wrapped into ArcUndeclaredThrowableException by interception subclasses. This commit fixes that by propagating all exception types from the interface methods to the $$CDIWrapper methods.

Fixes #48286

RESTEasy Reactive Client generates a `$$CDIWrapper` class for each
MP RestClient interface, which is then discovered by ArC. The generated
classes however used to not declare any exceptions on methods, even if
the interface did declare some. This is wrong at least in case the bean
is intercepted (for example using MP Fault Tolerance), because undeclared
checked exceptions are wrapped into `ArcUndeclaredThrowableException` by
interception subclasses. This commit fixes that by propagating all exception
types from the interface methods to the `$$CDIWrapper` methods.
Copy link

quarkus-bot bot commented Jun 9, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 9022b3a.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@geoand geoand merged commit 35bf36d into quarkusio:main Jun 9, 2025
34 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.24 - main milestone Jun 9, 2025
@Ladicek Ladicek deleted the fix-propagating-declared-exceptions-in-rest-client-reactive branch June 9, 2025 10:44
@gsmet gsmet modified the milestones: 3.24 - main, 3.23.3 Jun 10, 2025
@jmartisk jmartisk modified the milestones: 3.23.3, 3.20.2 Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MP fault tolerance and quarkus rest client issue

4 participants