Skip to content

Commit

Permalink
AnnotationUtils.getAnnotationAttributes makes Method accessible (anal…
Browse files Browse the repository at this point in the history
…ogous to AnnotationUtils.getValue)

Issue: SPR-12858
  • Loading branch information
jhoeller committed Mar 31, 2015
1 parent 14c891c commit 1d33fd0
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -583,6 +583,7 @@ public static AnnotationAttributes getAnnotationAttributes(Annotation annotation
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));
}
Expand Down

0 comments on commit 1d33fd0

Please sign in to comment.