Skip to content

Support accessing annotations via AnnotatedMember.annotations() #5244

@dnault

Description

@dnault

Is your feature request related to a problem? Please describe.

In 3.0, AnnotatedMember does not have a non-deprecated way to search for meta-annotations. For example, let's say there's a custom ValueSerializerModifier activated by an annotation called Foo, and this Foo annotation is supposed to be usable as a meta-annotation. In other words, if annotation Bar is annotated with Foo, then the custom code should be able to find the Foo annotation (on Bar) even if the member us annotated only with Bar.

Describe the solution you'd like

Removing the deprecation notice from AnnotatedMember.getAllAnnotations() would be one way to resolve the issue. This would allow custom code to search for meta-annotations by inspecting all annotations on the member.

Usage example

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions