Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with overloaded java methods #91

Open
wamsea opened this issue Mar 10, 2016 · 0 comments
Open

Issue with overloaded java methods #91

wamsea opened this issue Mar 10, 2016 · 0 comments

Comments

@wamsea
Copy link

wamsea commented Mar 10, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant