Look for any worthy method, even in superclasses.
This commit is contained in:
@@ -392,8 +392,9 @@ public abstract class FieldMarshaller<T>
|
|||||||
protected static Class<?> getTransformerType (Transformer<?, ?> xformer, String which)
|
protected static Class<?> getTransformerType (Transformer<?, ?> xformer, String which)
|
||||||
{
|
{
|
||||||
Class<?> ttype = null;
|
Class<?> ttype = null;
|
||||||
for (Method method : xformer.getClass().getDeclaredMethods()) {
|
String methodName = which + "Persistent";
|
||||||
if (method.getName().equals(which + "Persistent")) {
|
for (Method method : xformer.getClass().getMethods()) {
|
||||||
|
if (method.getName().equals(methodName)) {
|
||||||
if (ttype == null || ttype.isAssignableFrom(method.getReturnType())) {
|
if (ttype == null || ttype.isAssignableFrom(method.getReturnType())) {
|
||||||
ttype = method.getReturnType();
|
ttype = method.getReturnType();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user