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

Update AnnotationUtils to always call getDeclaredAnnotations defensively #660

Closed
wants to merge 1 commit into from

Conversation

wilkinsona
Copy link
Member

Previously, any exception thrown by getDeclaredAnnotations was not
handled. Due to the JDKs pure diagnostics, this made problem diagnosis
difficult as the details of the class that was being introspected were
lost.

This commit updates AnnotationUtils to always call
getDeclaredAnnotations within a try-catch block. Any exception that is
thrown is logged along with details of the class that was being
introspected. Processing then continues as if no annotations were
present.

Issue: SPR-12325

Previously, any exception thrown by getDeclaredAnnotations was not
handled. Due to the JDKs pure diagnostics, this made problem diagnosis
difficult as the details of the class that was being introspected were
lost.

This commit updates AnnotationUtils to always call
getDeclaredAnnotations within a try-catch block. Any exception that is
thrown is logged along with details of the class that was being
introspected. Processing then continues as if no annotations were
present.

Issue: SPR-12325
@snicoll
Copy link
Member

snicoll commented Oct 24, 2014

Closing this one as the related issue has been fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants