AnnotationUtils.getAnnotationAttributes makes Method accessible (analogous to AnnotationUtils.getValue)
Issue: SPR-12858
This commit is contained in:
parent
14c891c3b3
commit
1d33fd039a
|
@ -583,6 +583,7 @@ public abstract class AnnotationUtils {
|
|||
for (Method method : methods) {
|
||||
if (method.getParameterTypes().length == 0 && method.getReturnType() != void.class) {
|
||||
try {
|
||||
ReflectionUtils.makeAccessible(method);
|
||||
Object value = method.invoke(annotation);
|
||||
attrs.put(method.getName(), adaptValue(value, classValuesAsString, nestedAnnotationsAsMap));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue