OpenJDK 8 build 99: annotation discovery on bridge methods

This commit is contained in:
Juergen Hoeller
2013-07-24 13:36:59 +02:00
parent f7b7649d79
commit 2d1b44202b
5 changed files with 16 additions and 45 deletions

View File

@@ -141,9 +141,9 @@ public class StandardAnnotationMetadata extends StandardClassMetadata implements
Method[] methods = getIntrospectedClass().getDeclaredMethods();
Set<MethodMetadata> annotatedMethods = new LinkedHashSet<MethodMetadata>();
for (Method method : methods) {
// TODO: on OpenJDK 8 b99, bridge methods seem to be discovered as annotated as well...
if (AnnotatedElementUtils.isAnnotated(method, annotationType)) {
annotatedMethods.add(new StandardMethodMetadata(method,
this.nestedAnnotationsAsMap));
annotatedMethods.add(new StandardMethodMetadata(method, this.nestedAnnotationsAsMap));
}
}
return annotatedMethods;