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 contextual error message for incorrect use of @BeanParam #21817

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

Sgitario
Copy link
Contributor

The @QueryParam annotation is only allowed to be use in fields, no methods.
This PR will detect when users wrongly use the JAX-RS annotations meant to be used in fields, in methods. It will also throw a deployment exception when a BeanParam does not have fields annotated with QueryParam.

Fix #21789

The @QueryParam annotation is only allowed to be use in fields, no methods. 
This PR will detect when users wrongly use the JAX-RS annotations meant to be used in fields, in methods. It will also throw a deployment exception when a `BeanParam` does not have fields annotated with `QueryParam`.

Fix quarkusio#21789
@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 30, 2021
@geoand geoand changed the title Resteasy Reactive: Provide contextual err when wrong use of annotations Provide contextual error message for incorrect use of @BeanParam Nov 30, 2021
@geoand geoand merged commit 5d8262a into quarkusio:main Dec 1, 2021
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Dec 1, 2021
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Dec 1, 2021
@Sgitario Sgitario deleted the reactive_beanparam_classcast branch December 1, 2021 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants