-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Hi,
I have loaded all the public static methods of org.apache.commons.lang.StringUtils into my EL Context.
and when I try to use one of the overloaded 'split' method of it : value="${concatMulti(split('vamsi_,krishna,el,444',','))}" which ideally should split the specified string by comma.
But during runtime a exception is thrown saying Parameters for function 'split' do not match
And the same behaviour is observed for any overloaded method( tried to define some custom methods as well)
Could you please help me to find as to where I am missing.
Loaded all public static methods using below method
private void loadAllPublicStaticMethods(Class classObj) {
Method[] methods = classObj.getMethods();
for(Method method : methods) {
if (method.getModifiers() == 9) {
functions.setFunction("", method.getName(), method);
}
}
}