-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Bean Validation - Method validation for CDI and JAX-RS #287
Conversation
So there are several bugs, both in arc and in your code ;-). The first problem is that Then the build is stuck in Lastly, To sum it up - I'll send a PR and you should rebase and fix those issues after it's merged. |
This is now ready for review. |
@mkouba interested in your review if you have the time. |
* </p> | ||
*/ | ||
@Inject | ||
private Validator validator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always better to use package-private injection fields, or public/package-private injection initializers, or constructor injection in ArC. Private fields require reflection fallback...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will fix and force-push.
Looks good. |
@mkouba I fixed the visibility issue, should be good to go now. |
If the element ends up having a constraint, it was already working but if the element is not constrained for whatever reason, we need to register its metadata.
Fixes #209 .