Browse Source

OrderUtils defensively checks for presence of javax.annotation.Priority

Issue: SPR-12489
pull/701/head
Juergen Hoeller 11 years ago
parent
commit
c94d584f37
  1. 4
      spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java

4
spring-core/src/main/java/org/springframework/core/annotation/OrderUtils.java

@ -40,8 +40,8 @@ public abstract class OrderUtils { @@ -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