spring-projects/spring-framework — pull request #660 by wilkinsona (2014-10-13 09:39:58+00:00)
Title: Update AnnotationUtils to always call getDeclaredAnnotations defensively

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