Browse Source

Corrected check on whether delegate implements Ordered interface.

Luke Taylor 17 years ago
parent
commit
2ad0c2cbd0

+ 1 - 1
core/src/main/java/org/springframework/security/config/OrderedFilterBeanDefinitionDecorator.java

@@ -92,7 +92,7 @@ public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor
 
 
         public final int getOrder() {
         public final int getOrder() {
             if(order == null) {
             if(order == null) {
-                Assert.isInstanceOf(Ordered.class, "Filter '"+ beanName +"' must implement the 'Ordered' interface " +
+                Assert.isInstanceOf(Ordered.class, delegate, "Filter '"+ beanName +"' must implement the 'Ordered' interface " +
                         " or you must specify one of the attributes '" + ATT_AFTER + "' or '" +
                         " or you must specify one of the attributes '" + ATT_AFTER + "' or '" +
                         ATT_BEFORE + "' in <" + Elements.CUSTOM_FILTER +">");
                         ATT_BEFORE + "' in <" + Elements.CUSTOM_FILTER +">");