OrderUtils defensively checks for presence of javax.annotation.Priority

Issue: SPR-12489
master
Juergen Hoeller 10 years ago
parent 9a71a0c6c9
commit c94d584f37
  1. 4
      spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java

@ -40,8 +40,8 @@ public abstract class OrderUtils {
priorityAnnotationType = (Class<? extends Annotation>)
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)
}
}

Loading…
Cancel
Save