From: Seth P. <se...@us...> - 2004-12-16 18:53:10
|
Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8007/com/sun/xacml/cond Modified Files: Tag: branch_1_2 HigherOrderFunction.java Log Message: fixed bug for any-of-any and all-of-all if the first parameter is an empty bag Index: HigherOrderFunction.java =================================================================== RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond/HigherOrderFunction.java,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** HigherOrderFunction.java 15 Jul 2004 18:14:06 -0000 1.7 --- HigherOrderFunction.java 16 Dec 2004 18:52:52 -0000 1.7.2.1 *************** *** 284,287 **** --- 284,288 ---- // any evaluation is true return true, otherwise return false + result = new EvaluationResult(BooleanAttribute.getInstance(false)); Iterator it = ((BagAttribute)args[0]).iterator(); BagAttribute bag = (BagAttribute)(args[1]); *************** *** 335,338 **** --- 336,340 ---- // function, then return true, otherwise return false + result = new EvaluationResult(BooleanAttribute.getInstance(true)); Iterator it = ((BagAttribute)args[0]).iterator(); BagAttribute bag = (BagAttribute)(args[1]); |