-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Adding javax.validation @Valid in JAX-RS resource method which override an interface break HibernateValidatorTemplate #2556
Comments
I can confirm this is not fixed in current master. |
This is a bug in HV, though, no @gsmet ? |
It's a bug in HV and we have a PR open to fix it. But let's keep that open as I need the test case handy. |
Several comments here:
@gsmet I thing item 7 warrants further investigation. I added a test to my PR here: #4439
|
Urgh, that's definitely not intended... well, except if the classes are annotated with BV/HV annotations. I'll have a closer look as soon as I can. |
Describe the bug
I have an interface with a single method:
and a JAX-RS resource which implements it:
Expected behavior
The parameter is "validated" with javax.validation.
Actual behavior
At startup with:
I got this Exception:
When the executable of the:
method is:
it does a bad calculation of "explicitlyDeclaredParameterIndex", accessing to the genericParameterTypes array with index[1] raise the
Exception.
To Reproduce
Steps to reproduce the behavior:
Configuration
None
Environment (please complete the following information):
Output of
uname -a
orver
:Darwin WMICTLM1P.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
Output of
java -version
:java version "1.8.0_152"
Quarkus version or git rev:
0.15.0
Additional context
The same exact problem can be replicated from the attached test-case.
There is another issue with javax.validation and Interface, but in own opinion is not related:
#1888
test-case.zip
The text was updated successfully, but these errors were encountered: