Allow AnnoConfigEx to propagate from getRepeatableAnnotation()

Issue: SPR-13084
This commit is contained in:
Sam Brannen
2015-05-29 21:17:33 +02:00
parent 8f233786ed
commit 46be176875
2 changed files with 31 additions and 1 deletions

View File

@@ -1486,6 +1486,7 @@ public abstract class AnnotationUtils {
* it will be cast to an {@code AnnotationConfigurationException} and thrown,
* allowing it to propagate to the caller.
* <p>Otherwise, this method does nothing.
* @param t the throwable to inspect
* @since 4.2
*/
static void rethrowAnnotationConfigurationException(Throwable t) {
@@ -1621,6 +1622,7 @@ public abstract class AnnotationUtils {
return synthesizedAnnotations;
}
catch (Exception ex) {
rethrowAnnotationConfigurationException(ex);
// Unable to read value from repeating annotation container -> ignore it.
return Collections.emptyList();
}