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

Provide a warning when a raw RestResponse return type is used #28657

Merged
merged 1 commit into from Oct 19, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Oct 18, 2022

Closes: #28627

@quarkus-bot

This comment has been minimized.

@knutwannheden
Copy link
Contributor

Would it alternatively make sense if a warning is logged at build-time if the ServerStringMessageBodyHandler gets configured as MessageBodyWriter except for a whitelist of some JDK types?

@geoand
Copy link
Contributor Author

geoand commented Oct 18, 2022

I'd be weary of doing that because it's too low level and it's not actionable for users

@knutwannheden
Copy link
Contributor

I was thinking that Quarkus may be able to log a warning like: No matching message body writer found for method ... Using toString() to serialize response.

But perhaps there are many edge cases where this warning wouldn't make any sense.

@geoand
Copy link
Contributor Author

geoand commented Oct 18, 2022

The problem is that a user does not know what to do with that warning

@geoand geoand requested a review from Sgitario October 19, 2022 06:12
@geoand geoand merged commit c9e0089 into quarkusio:main Oct 19, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Oct 19, 2022
@geoand geoand deleted the #28627 branch October 19, 2022 06:17
@gsmet gsmet modified the milestones: 2.14.0.CR1, 2.13.4.Final Oct 31, 2022
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.

Using raw RestResponse return type has unexpected consequences
4 participants