Skip to content

Issue with overloaded java methods #91

@wamsea

Description

@wamsea

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);
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions