Closed
Description
Andy Wilkinson opened SPR-12357 and commented
I noticed this while testing the fix for #16930. I was running an app on Tomcat 8 (where javax.annotation.Priority
is available).
OrderUtils.getPriority
calls Class.getAnnotations()
directly so it doesn't benefit from the recent improvements to AnnotationUtils
' diagnostics. Could OrderUtils.getPriority
be updated to use AnnotationUtils
in a similar fashion to OrderUtils.getOrder
?
Affects: 4.1.1
Issue Links:
- Use javax.annotation.Priority as an alternative for @Order [SPR-11639] #16262 Use javax.annotation.Priority as an alternative for
@Order
- AnnotationUtils provides poor diagnostics if getDeclaredAnnotations throws an exception [SPR-12325] #16930 AnnotationUtils provides poor diagnostics if getDeclaredAnnotations throws an exception
- be more defensive looking up javax.annotation.Priority (jdk6 compatibility) [SPR-12489] #17095 be more defensive looking up javax.annotation.Priority (jdk6 compatibility)
Referenced from: commits 2b6f841