Skip to content

Component scanning doesn't find enums in annotations [SPR-5479] #10152

@spring-projects-issues

Description

@spring-projects-issues

Jon Bass opened SPR-5479 and commented

If I have an annotation like:
public @interface Foo {
String value();
Thread.State state() default Thread.State.WAITING;
}

Then the attributes in the AnnotatedBeanDefinition.getMetaData().getAnnotationattributes() always has the default value when I try to get them from a custom bean name generator.


Affects: 2.5.6

Issue Links:

Referenced from: commits 213b528

1 votes, 4 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions