cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 56239 - cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime
Date Mon, 01 Nov 2004 15:01:30 GMT
Author: pier
Date: Mon Nov  1 07:01:30 2004
New Revision: 56239

Modified:
   cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Instance.java
Log:
Reverse the order of assignability check

Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Instance.java
==============================================================================
--- cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Instance.java	(original)
+++ cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Instance.java	Mon Nov  1
07:01:30 2004
@@ -102,7 +102,7 @@
         }
         this.interfaces = (Class[])interfaces.toArray(new Class[interfaces.size()]);
         for (int k = 0; k < this.interfaces.length; k++) {
-            if (this.component.isAssignableFrom(this.interfaces[k])) continue;
+            if (this.interfaces[k].isAssignableFrom(this.component)) continue;
             throw new DeployerException("Component class \"" + this.component.getName()
                     + "\" is not assignable from \"" + this.interfaces[k] + "\"");
         }

Mime
View raw message