Browse Source

ASM annotation visitor logs IllegalAccessException at debug level only

Issue: SPR-15442
pull/1386/head
Juergen Hoeller 9 years ago
parent
commit
4838f06d5d
  1. 7
      spring-core/src/main/java/org/springframework/core/type/classreading/AbstractRecursiveAnnotationVisitor.java

7
spring-core/src/main/java/org/springframework/core/type/classreading/AbstractRecursiveAnnotationVisitor.java

@ -17,6 +17,7 @@
package org.springframework.core.type.classreading; package org.springframework.core.type.classreading;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.security.AccessControlException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -84,11 +85,11 @@ abstract class AbstractRecursiveAnnotationVisitor extends AnnotationVisitor {
valueToUse = enumConstant.get(null); valueToUse = enumConstant.get(null);
} }
} }
catch (ClassNotFoundException ex) { catch (ClassNotFoundException | NoClassDefFoundError ex) {
logger.debug("Failed to classload enum type while reading annotation metadata", ex); logger.debug("Failed to classload enum type while reading annotation metadata", ex);
} }
catch (IllegalAccessException ex) { catch (IllegalAccessException | AccessControlException ex) {
logger.warn("Could not access enum value while reading annotation metadata", ex); logger.debug("Could not access enum value while reading annotation metadata", ex);
} }
return valueToUse; return valueToUse;
} }

Loading…
Cancel
Save