Look for any worthy method, even in superclasses.

This commit is contained in:
Ray Greenwell
2010-10-01 01:29:46 +00:00
parent c7eb6f56ef
commit 2ff3bac12d
@@ -392,8 +392,9 @@ public abstract class FieldMarshaller<T>
protected static Class<?> getTransformerType (Transformer<?, ?> xformer, String which)
{
Class<?> ttype = null;
for (Method method : xformer.getClass().getDeclaredMethods()) {
if (method.getName().equals(which + "Persistent")) {
String methodName = which + "Persistent";
for (Method method : xformer.getClass().getMethods()) {
if (method.getName().equals(methodName)) {
if (ttype == null || ttype.isAssignableFrom(method.getReturnType())) {
ttype = method.getReturnType();
}