Co-authored-by: Tarek Ahmed <tarek.ahmed@agfa.com>
This commit is contained in:
parent
e81ff9a769
commit
2db1fe2c93
|
@ -90,6 +90,15 @@ public class MethodUtil {
|
|||
if (Collection.class.isAssignableFrom(parameterType)) {
|
||||
innerCollectionType = (Class<? extends java.util.Collection<?>>) parameterType;
|
||||
parameterType = ReflectionUtil.getGenericCollectionTypeOfMethodParameter(theMethod, paramIndex);
|
||||
if(parameterType == null && theMethod.getDeclaringClass().isSynthetic()) {
|
||||
try {
|
||||
theMethod = theMethod.getDeclaringClass().getSuperclass().getMethod(theMethod.getName(), parameterTypes);
|
||||
parameterType = ReflectionUtil.getGenericCollectionTypeOfMethodParameter(theMethod, paramIndex);
|
||||
} catch (NoSuchMethodException e) {
|
||||
throw new ConfigurationException("A method with name '" + theMethod.getName() + "' does not exist for super class '"
|
||||
+ theMethod.getDeclaringClass().getSuperclass() + "'");
|
||||
}
|
||||
}
|
||||
declaredParameterType = parameterType;
|
||||
}
|
||||
if (Collection.class.isAssignableFrom(parameterType)) {
|
||||
|
|
Loading…
Reference in New Issue