From e252f4a49774d761b54b7695d34df26c3e8be761 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Fri, 25 May 2007 05:32:32 +0000 Subject: [PATCH] Make compatible with Assert static class in Spring 1.2.9. --- core/src/main/java/org/acegisecurity/util/OrderedUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/acegisecurity/util/OrderedUtils.java b/core/src/main/java/org/acegisecurity/util/OrderedUtils.java index 0fc05337cc..ce66c6da6b 100644 --- a/core/src/main/java/org/acegisecurity/util/OrderedUtils.java +++ b/core/src/main/java/org/acegisecurity/util/OrderedUtils.java @@ -33,7 +33,7 @@ public abstract class OrderedUtils { Assert.notNull(sourceClass, "Source class required"); Assert.notNull(applicationContext, "ApplicationContext required"); Assert.notNull(destinationObject, "Destination object required"); - Assert.isAssignable(Ordered.class, sourceClass, "Source class " + sourceClass + " must be assignable to Ordered"); + Assert.isTrue(Ordered.class.isAssignableFrom(sourceClass), "Source class " + sourceClass + " must be assignable to Ordered"); Map map = applicationContext.getBeansOfType(sourceClass); if (map.size() == 0) { return false;