Skip to content

AnnotationUtils fails to throw exception if meta-annotation is not present [SPR-13335] #17921

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-13335 and commented

Status Quo

It is a user configuration error if an alias is configured via @AliasFor for an attribute in a meta-annotation and the meta-annotation is not meta-present. However, the support for validating the configuration of @AliasFor in AnnotationUtils currently silently ignores such errors.

Deliverables

  1. Ensure that an exception is thrown whenever a required meta-annotation is not present or meta-present on an annotation that declares an alias for an attribute in the meta-annotation.

Affects: 4.2 GA

Referenced from: commits 8289036

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions