Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Feb 12, 2009 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 12, 2009

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Thanks for pointing this out! Fixed in 3.0 M2 through resolving the ASM Type reference to an actual Class when encountered as an attribute value.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants