Skip to content

Support package private annotations with AnnotationUtils [SPR-12858] #17456

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-12858 and commented

AnnotationUtils.getAnnotationAttributes currently doesn't work with package scope annotations.

I believe that calling method.setAccessible(true) when iterating the methods would solve the issue.

https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java#L586


Affects: 4.1.6

Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions