[hibernate/hibernate-validator] 9e439b: HV-1927 Use Executable#getAnnotatedParameterTypes(...
by Guillaume Smet
Branch: refs/heads/6.2
Home: https://github.com/hibernate/hibernate-validator
Commit: 9e439bb8e4646854f135276d2206a01348b02d9e
https://github.com/hibernate/hibernate-validator/commit/9e439bb8e4646854f...
Author: Guillaume Smet <guillaume.smet(a)gmail.com>
Date: 2022-09-12 (Mon, 12 Sep 2022)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/properties/javabean/JavaBeanExecutable.java
M engine/src/main/java/org/hibernate/validator/internal/properties/javabean/JavaBeanParameter.java
M engine/src/main/java/org/hibernate/validator/internal/util/logging/Log.java
Log Message:
-----------
HV-1927 Use Executable#getAnnotatedParameterTypes() instead of Executable#getGenericParameterTypes()
getGenericParameterTypes() is problematic with synthetic and implicit
parameters and we used to have ugly workarounds and warnings. Using
getAnnotatedParameterTypes() solves the issue.
I was extremely conservative in the changes as I want to be able to
backport it.
2 years, 3 months