Bug 153507 Bogus error when bad data set column referenced in group key
Run attached report design. Its group key binding column, "groupkey", is defined to refer to a non-existing data set column: dataSetRow["bad"]. However the actual error seen when previewing the report in BIRT designer: Table (id = 6): + A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: TypeError: valueOf is not a function. Script source: null, line: 0, text: <compiled script>. See next exception for more information. Error evaluating Javascript expression. Script engine error: TypeError: valueOf is not a function. Script source: null, line: 0, text: <compiled script> This error is completely irrelevant to the actual cause of the problem.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java
import org.eclipse.birt.data.engine.expression.CompiledExpression;
import org.eclipse.birt.data.engine.i18n.ResourceConstants;
import org.eclipse.birt.data.engine.odi.IResultClass;
import org.eclipse.birt.data.engine.odi.IResultObject;
import org.eclipse.birt.data.engine.odi.IResultObjectEvent;
import org.eclipse.birt.data.engine.script.ScriptEvalUtil;
import org.mozilla.javascript.Context;
/**
 * One of implemenation of IResultObjectEvent interface. Used to calculate the
 * computed columns value in the time window from fetching data to do
 * grouping/sorting data.
 */
public class ComputedColumnHelper implements IResultObjectEvent
{
	private ComputedColumnHelperInstance dataSetInstance;
	private ComputedColumnHelperInstance resultSetInstance;
	private int currentModel;
	private List allCC;
	/**
	 * 
	 * @param dataSet
	 * @param dataSetCCList
	 * @param resultSetCCList
	 */
	ComputedColumnHelper( DataSetRuntime dataSet, List dataSetCCList,
			List resultSetCCList )
	{
		this.dataSetInstance = new ComputedColumnHelperInstance( dataSet,
				dataSetCCList );
		this.resultSetInstance = new ComputedColumnHelperInstance( dataSet,