Bug 208168 Meaningless exception occurs when sorting condition refer to a unused binding[07]
Description: Meaningless exception occurs when sorting condition refer to a unused binding[07] Build number: 2.3.0.v2007-0800 Steps to reproduce: 1, New a table binding with a dataset 2, Define a Sort for the table 3, Delete the binding of table which is using by sorting condition 4, Preview Expected result: The exception should be meaningful. Actual result: Exception is meaningless for user to clear the mistake point Error log: An error happen during population of data. This might be caused by including data of mixed type in a column of "ANY" type
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java
{
		assert resultClass != null;
		
		
		List cmptList = new ArrayList( );
		for ( int i = 0; i < ccList.size( ); i++ )
		{
			IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( i );
			int cmptdColumnIdx = resultClass.getFieldIndex( cmptdColumn.getName( ) );
			
			
			if ( cmptdColumnIdx >= 1
					&& resultClass.isCustomField( cmptdColumnIdx ) )
				cmptList.add( new Integer( i ) );
			
			
		}
		int size = cmptList.size( );
		columnIndexArray = new int[size];
		computedColumn = new IComputedColumn[size];
		for ( int i = 0; i < size; i++ )
		{
			int pos = ( (Integer) cmptList.get( i ) ).intValue( );
			IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( pos );
			computedColumn[i] = cmptdColumn;
			columnIndexArray[i] = resultClass.getFieldIndex( cmptdColumn.getName( ) );
		}
		isPrepared = true;
	}
}