Bug 193092 If measure filter's member value type is boolean, exception throws out when preview[1102]
Description: If measure filter's member value type is boolean, exception throws out when preview[1102] Build number: 2.2.0.v20070618-1344 Steps to reproduce: 1, Open the attached report design 2, The measure's filter has a boolean type member value 3, Preview Expected result: The filter works well Actual result: Exception occurs when preview Error log: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.lang.IllegalArgumentException org.eclipse.birt.data.engine.olap.data.util.CompareUtil.compare(CompareUtil.java:58) org.eclipse.birt.data.engine.olap.util.filter.DimensionFilterEvalHelper.evaluateFilter(DimensionFilterEvalHelper.java:71) org.eclipse.birt.data.engine.olap.data.api.CubeQueryExecutorHelper.applyAggrFilter(CubeQueryExecutorHelper.java:769) org.eclipse.birt.data.engine.olap.data.api.CubeQueryExecutorHelper.generateLevelFilters(CubeQueryExecutorHelper.java:595) org.eclipse.birt.data.engine.olap.data.api.CubeQueryExecutorHelper.applyAggrFilters(CubeQueryExecutorHelper.java:477) org.eclipse.birt.data.engine.olap.data.api.CubeQueryExecutorHelper.execute(CubeQueryExecutorHelper.java:299)
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/ScriptEvalUtil.java
* http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.script;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import org.eclipse.birt.core.data.DataTypeUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.script.JavascriptEvalUtil;
import org.eclipse.birt.data.engine.api.IBaseExpression;
import org.eclipse.birt.data.engine.api.IConditionalExpression;
import org.eclipse.birt.data.engine.api.IScriptExpression;
import org.eclipse.birt.data.engine.api.querydefn.ConditionalExpression;
import org.eclipse.birt.data.engine.api.querydefn.ScriptExpression;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.expression.CompiledExpression;
import org.eclipse.birt.data.engine.i18n.ResourceConstants;
import org.eclipse.birt.data.engine.impl.LogUtil;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
/**
 * Static utility methods to help evaluating Javascript expressions 
 */
public class ScriptEvalUtil