nutzam/nutz — Issue #125: el中使用函数调用有问题
Author: hujun82589167
Created: 2011-12-22 03:34:23+00:00
State: open

问题产生条件：
public Class StringUtil{
public static String test(String[] names){
return "";
}
}
正确的情况：
String[] a = new String[]{"a","b"};
El exp = new El("util.test(a)");
Context context = Lang.context();
context.set("util",StringUtil.class.newInstance());
context.set("a", a);
exp.eval(context);
错误的情况：
String[] a = new String[]{"a","b"};
Map map = new HashMap();
map.put("a", a);
El exp = new El("util.test(map['a'])");
Context context = Lang.context();
context.set("util",StringUtil.class.newInstance());
context.set("map", map);
exp.eval(context);