From aebe8a24d31470f6eb9f8a5cdd81440795be7d1f Mon Sep 17 00:00:00 2001 From: Willem Cazander Date: Fri, 28 Sep 2012 00:49:27 +0200 Subject: [PATCH] Fixme missing if and add throw on mismatch. --- .../org/x4o/xml/eld/lang/ElementRefectionBindingHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x4o-core/src/main/java/org/x4o/xml/eld/lang/ElementRefectionBindingHandler.java b/x4o-core/src/main/java/org/x4o/xml/eld/lang/ElementRefectionBindingHandler.java index 00df63a..0a6474a 100644 --- a/x4o-core/src/main/java/org/x4o/xml/eld/lang/ElementRefectionBindingHandler.java +++ b/x4o-core/src/main/java/org/x4o/xml/eld/lang/ElementRefectionBindingHandler.java @@ -72,6 +72,9 @@ public class ElementRefectionBindingHandler extends AbstractElementBindingHandle if (types.length > 1) { continue; } + if (method.equalsIgnoreCase(m.getName())==false) { + continue; + } if (types[0].isAssignableFrom(childClass)) { try { m.invoke(parentObject, childObject); @@ -81,6 +84,7 @@ public class ElementRefectionBindingHandler extends AbstractElementBindingHandle return; } } + throw new ElementBindingHandlerException("Could not find method: "+method+" on: "+childClass+" id:"+getId()); } /**