RESOLVED - BATCH-1201: Listener Annotations don't allow parameters to be subtypes of expected types

This commit is contained in:
dhgarrette
2009-04-08 15:46:40 +00:00
parent 9092b47fce
commit f306e9e83e
2 changed files with 20 additions and 23 deletions

View File

@@ -129,7 +129,7 @@ public class MethodInvokerUtils {
Assert.isTrue(paramTypes.length == expectedParamTypes.length, errorMsg);
for (int i = 0; i < paramTypes.length; i++) {
Assert.isTrue(paramTypes[i].equals(expectedParamTypes[i]), errorMsg);
Assert.isTrue(expectedParamTypes[i].isAssignableFrom(paramTypes[i]), errorMsg);
}
}
}