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

AnnotationUtils provides poor diagnostics if getDeclaredAnnotations throws an exception [SPR-12325] #16930

Closed
spring-projects-issues opened this issue Oct 13, 2014 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Oct 13, 2014

Andy Wilkinson opened SPR-12325 and commented

This is a follow-on from #16493, triggered by this bug report against Spring Boot.

PR showing how this could be further improved to follow.


Affects: 4.0.7, 4.1.1

Issue Links:

Referenced from: commits e16f21c, 47dde91, 716916b

Backported to: 4.0.8

@spring-projects-issues
Copy link
Collaborator Author

Andy Wilkinson commented

Hi, Juergen. Here's a pull request for the change that I think needs to be made: #660. It makes exception handling for calls to getDeclaredAnnotations consistent within AnnotationUtils.

@spring-projects-issues
Copy link
Collaborator Author

Andy Wilkinson commented

For the scenario described in this Boot issue the changed made in this commit has made the diagnostics worse as things now fail silently. This catch block that returns null without logging is the culprit. Could it be updated to also call logIntrospectionFailure?

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Oct 21, 2014

Juergen Hoeller commented

Oops, that was a plain oversight after refactoring. To be pushed along with the fix for #16962.

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) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants