提交 25dd4c24 编写于 作者: K kohsuke

fixed to work with the latest JEXL.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5397 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9e994f16
......@@ -16,6 +16,7 @@ import hudson.model.TopLevelItem;
import hudson.model.View;
import hudson.search.SearchableModelObject;
import org.apache.commons.jexl.parser.ASTSizeFunction;
import org.apache.commons.jexl.util.Introspector;
import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
......@@ -446,7 +447,7 @@ public class Functions {
*/
public static int size2(Object o) throws Exception {
if(o==null) return 0;
return ASTSizeFunction.sizeOf(o);
return ASTSizeFunction.sizeOf(o,Introspector.getUberspect());
}
public static ExecutedMojo.Cache createExecutedMojoCache() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册