Skip to content

Regression: AnnotationUtils.findAnnotation no longer finds non-inherited java. annotations on superclasses #23929

@sellersj

Description

@sellersj

Affects: spring-core 5.2.1

When updating from 5.1.10 to 5.2.0 / 5.2.1, then AnnotationUtils.findAnnotation(Class<?> clazz, @Nullable Class<A> annotationType) no longer finds annotations that are created on the parent.

Example project
https://github.com/sellersj/spring-annotationutils-issue

I thought that #23856 was the same issue, but updating to 5.2.1 didn't fix the issue.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions