INT-1688 ignoring methods that are declared on the Proxy class itself

This commit is contained in:
Mark Fisher
2010-12-17 14:45:10 -05:00
parent 1d582583a5
commit ff7c0fe309

View File

@@ -19,6 +19,7 @@ package org.springframework.integration.util;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -277,6 +278,9 @@ public class MessagingMethodInvokerHelper<T> extends AbstractExpressionEvaluator
if (isMethodDefinedOnObjectClass(method)) {
return;
}
if (method.getDeclaringClass().equals(Proxy.class)) {
return;
}
if (!Modifier.isPublic(method.getModifiers())) {
return;
}