Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Resource classes for reflection when custom MessageBodyWriter classes exist #25385

Merged
merged 1 commit into from
May 5, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented May 5, 2022

@geoand geoand force-pushed the rr-reflection-writers branch from ef4cded to 759f906 Compare May 5, 2022 06:11
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm! Thank you!

@geoand geoand merged commit 68dd401 into quarkusio:main May 5, 2022
@quarkus-bot quarkus-bot bot added this to the 2.10 - main milestone May 5, 2022
@geoand geoand deleted the rr-reflection-writers branch May 5, 2022 14:00
@geoand
Copy link
Contributor Author

geoand commented May 5, 2022

Thanks for checking!

@gsmet gsmet modified the milestones: 2.10 - main, 2.9.1.Final May 12, 2022
@gsmet gsmet modified the milestones: 2.9.1.Final, 2.7.6.Final May 18, 2022
michalvavrik added a commit to michalvavrik/quarkus-test-suite that referenced this pull request Jul 25, 2022
verifies: quarkusio/quarkus#25385

When we provide `MessageBodyWriter` that does not extend `ServerMessageBodyWriter`, related resource methods must be registered for the reflection. Previously, we had to do this manually, now it's done by the Quarkus for us.

Reproducer
1. go to Quarkus project
2. revert PR `git revert 224ec8c3e8e50930970e9c8b7316622ba898b0b9`
3. checkout this PR
4. `cd quarkus-test-suite/http/http-advanced-reactive`
5. run `mvn clean verify -Dit.test=HttpAdvancedReactiveIT -Dnative`
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.

Native application fails with NoSuchMethodException when RestEasy Reactive is used
3 participants