mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 09:36:04 +00:00
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:
1 parent
9e994f16ff
commit
25dd4c24f5
1 file changed
+2
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user