Skip to content

AnnotationMetadataReadingVisitor doesn't consider annotation method returning classes [SPR-5477] #10150

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tuomas Kiviaho opened SPR-5477 and commented

javax.xml.bind.annotation.XmlType#factoryClass return type is class but when scanned AnnotationMetadataReadingVisitor returns the value as org.springframework.asm.Type if factoryClass isn't default value.

One possible solution would be use classloader.loadClass(((Type)object).getClassName()) in visit() method for such types just like when handling the defaults.


Affects: 2.5.6

Issue Links:

Referenced from: commits 213b528

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