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
This commit is contained in:
kohsuke committed 2007-10-22 18:28:11 +00:00
1 parent 9e994f16ff
commit 25dd4c24f5
1 file changed
+2 -1
+2 -1
View File
@@ -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() {