issue #143 : fix toString method of rule proxy to match original method

pull/147/head
Mahmoud Ben Hassine 7 years ago
parent 623d80acf4
commit 8e5a1716ae

@ -186,7 +186,13 @@ public class RuleProxy implements InvocationHandler {
return result;
}
private String toStringMethod(){
private String toStringMethod() throws Exception {
Method[] methods = getMethods();
for (Method method : methods) {
if ("toString".equals(method.getName())) {
return (String) method.invoke(target);
}
}
return getRuleName();
}

Loading…
Cancel
Save