diff --git a/spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java index 76f07e1f7f..350a7bdf6f 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java @@ -40,8 +40,8 @@ public abstract class OrderUtils { priorityAnnotationType = (Class) ClassUtils.forName("javax.annotation.Priority", OrderUtils.class.getClassLoader()); } - catch (ClassNotFoundException ex) { - // javax.annotation.Priority not available + catch (Throwable ex) { + // javax.annotation.Priority not available, or present but not loadable (on JDK 6) } }