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

[RESTEASY-2244] @Produces not picked up well #2123

Merged
merged 2 commits into from Aug 9, 2019

Conversation

spyrkob
Copy link
Contributor

@spyrkob spyrkob commented Aug 1, 2019

@ronsigal
Copy link
Collaborator

ronsigal commented Aug 1, 2019

Thanks, @spyrkob. Would you be interested in writing a test in which the return media type comes from the resource class?

@spyrkob
Copy link
Contributor Author

spyrkob commented Aug 2, 2019

@ronsigal sure, can do that, but without some hackery it won't be possible to reproduce the issue as the correct Producer would be returned by the method.getProduces() already.

@ronsigal
Copy link
Collaborator

ronsigal commented Aug 2, 2019

@spyrkob, yeah, you're right. Good point. I suspect that the best practice would be to have a test in place just to prevent any future regressions. With a note explaining that there is currently no way for the test to fail. If you don't mind. ;-)

@asoldano asoldano added the main label Aug 5, 2019
@spyrkob
Copy link
Contributor Author

spyrkob commented Aug 7, 2019

@ronsigal added the test, let me know if it looks OK

Copy link
Member

@asoldano asoldano left a comment

Choose a reason for hiding this comment

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

@spyrkob , the new test is not compiling, because of HttpResponseCodes which is in package org.jboss.resteasy.spi in master.

@spyrkob
Copy link
Contributor Author

spyrkob commented Aug 9, 2019

@asoldano sorry my IDE must have messed up something... should be fixed now

Copy link
Member

@asoldano asoldano left a comment

Choose a reason for hiding this comment

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

Thanks

@asoldano asoldano merged commit 647f033 into resteasy:master Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants