Fixme missing if and add throw on mismatch.
This commit is contained in:
parent
7eba34a510
commit
aebe8a24d3
|
@ -72,6 +72,9 @@ public class ElementRefectionBindingHandler extends AbstractElementBindingHandle
|
||||||
if (types.length > 1) {
|
if (types.length > 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (method.equalsIgnoreCase(m.getName())==false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (types[0].isAssignableFrom(childClass)) {
|
if (types[0].isAssignableFrom(childClass)) {
|
||||||
try {
|
try {
|
||||||
m.invoke(parentObject, childObject);
|
m.invoke(parentObject, childObject);
|
||||||
|
@ -81,6 +84,7 @@ public class ElementRefectionBindingHandler extends AbstractElementBindingHandle
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
throw new ElementBindingHandlerException("Could not find method: "+method+" on: "+childClass+" id:"+getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue