Bug 207895 [Automation]Exception occurs when preview a crosstab with IN filter[1102]
Description: Exception occurs when preview a crosstab with IN filter[1102] Build number: 2.3.0.v20071029-0630 Steps to reproduce: 1, New a crosstab 2, Specify a IN filter of crosstab 3, Preview Expected result: Preview should be ok and filter works well Actual result: Exception occurs Error log: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.lang.StackOverflowError java.util.ArrayList.get(ArrayList.java:321) org.eclipse.birt.data.engine.olap.query.view.CubeQueryDefinitionUtil.getExprTextList(CubeQueryDefinitionUtil.java:248)
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/query/view/CubeQueryDefinitionUtil.java
* implementation: we only consider IMeasureDefintion we will take into
	 * consider to handle the aggregation definition in binding expression;
	 * 
	 * @param queryDefn
	 * @return
	 * @throws DataException 
	 */
	static CalculatedMember[] getCalculatedMembers(
			ICubeQueryDefinition queryDefn, Scriptable scope ) throws DataException
	{
		List measureList = queryDefn.getMeasures( );
		ICubeAggrDefn[] cubeAggrs = OlapExpressionUtil.getAggrDefns( queryDefn.getBindings( ) );
		
		List cubeAggrBindingList = new ArrayList();
		for( int i=0; i< cubeAggrs.length; i++ )
		{
			if( cubeAggrs[i].getAggrName( ) != null )
				cubeAggrBindingList.add( cubeAggrs[i] );
		}
		
		populateMeasureFromBinding( queryDefn );
		populateMeasureFromFilter( queryDefn );
		populateMeasureFromSort( queryDefn );
		if ( measureList == null )
			return new CalculatedMember[0];
		CalculatedMember[] calculatedMember = new CalculatedMember[measureList.size( )
				+ cubeAggrBindingList.size( )];
		int index = 0;
		
		List calculatedMemberList = new ArrayList();