Program: 70305
Project: 70305
Buggy source:
public void visitCell(CellHandle handle){
  CellDesign cell=new CellDesign();
  setupStyledElement(cell,handle);
  setupAuralInfomation(cell,handle);
  SlotHandle contentSlot=handle.getContent();
  for (int i=0; i < contentSlot.getCount(); i++) {
    apply(contentSlot.get(i));
    if (currentElement != null) {
      cell.addContent((ReportItemDesign)currentElement);
    }
  }
  cell.setColSpan(handle.getColumnSpan());
  int columnId=handle.getColumn() - 1;
  if (columnId < 0) {
    columnId=-1;
  }
  cell.setColumn(columnId);
  cell.setRowSpan(handle.getRowSpan());
  if (isCellInGroupHeader(handle)) {
    cell.setDrop(createConstant(handle.getDrop()));
  }
  String onCreate=handle.getOnCreate();
  String onCreateScriptText=validateExpression(onCreate);
  if (null != onCreateScriptText) {
    String id=ModuleUtil.getScriptUID(handle.getPropertyHandle(ICellModel.ON_CREATE_METHOD));
    ScriptExpression scriptExpr=new ScriptExpression(onCreateScriptText,id);
    cell.setOnCreate(scriptExpr);
  }
  String OnRenderScriptText=handle.getOnRender();
  if (null != OnRenderScriptText) {
    String id=ModuleUtil.getScriptUID(handle.getPropertyHandle(ICellModel.ON_RENDER_METHOD));
    ScriptExpression scriptExpr=new ScriptExpression(OnRenderScriptText,id);
    cell.setOnRender(scriptExpr);
  }
  setupHighlight(cell,null);
  int diagonalNumber=handle.getDiagonalNumber();
  if (diagonalNumber > 0) {
    cell.setDiagonalNumber(diagonalNumber);
    cell.setDiagonalStyle(handle.getDiagonalStyle());
    cell.setDiagonalWidth(createDimension(handle.getDiagonalThickness(),false));
  }
  int antidiagonalNumber=handle.getAntidiagonalNumber();
  if (antidiagonalNumber > 0) {
    cell.setAntidiagonalNumber(antidiagonalNumber);
    cell.setAntidiagonalStyle(handle.getAntidiagonalStyle());
    cell.setAntidiagonalWidth(createDimension(handle.getAntidiagonalThickness(),false));
  }
  setCurrentElement(cell);
}

Fixed version (ground truth):
public void visitCell(CellHandle handle){
  CellDesign cell=new CellDesign();
  setupStyledElement(cell,handle);
  setupAuralInfomation(cell,handle);
  SlotHandle contentSlot=handle.getContent();
  for (int i=0; i < contentSlot.getCount(); i++) {
    apply(contentSlot.get(i));
    if (currentElement != null) {
      cell.addContent((ReportItemDesign)currentElement);
    }
  }
  cell.setColSpan(handle.getColumnSpan());
  int columnId=handle.getColumn() - 1;
  if (columnId < 0) {
    columnId=-1;
  }
  cell.setColumn(columnId);
  cell.setRowSpan(handle.getRowSpan());
  if (isCellInGroupHeader(handle)) {
    cell.setDrop(handle.getDrop());
  }
  String onCreate=handle.getOnCreate();
  String onCreateScriptText=validateExpression(onCreate);
  if (null != onCreateScriptText) {
    String id=ModuleUtil.getScriptUID(handle.getPropertyHandle(ICellModel.ON_CREATE_METHOD));
    ScriptExpression scriptExpr=new ScriptExpression(onCreateScriptText,id);
    cell.setOnCreate(scriptExpr);
  }
  String OnRenderScriptText=handle.getOnRender();
  if (null != OnRenderScriptText) {
    String id=ModuleUtil.getScriptUID(handle.getPropertyHandle(ICellModel.ON_RENDER_METHOD));
    ScriptExpression scriptExpr=new ScriptExpression(OnRenderScriptText,id);
    cell.setOnRender(scriptExpr);
  }
  setupHighlight(cell,null);
  int diagonalNumber=handle.getDiagonalNumber();
  if (diagonalNumber > 0) {
    cell.setDiagonalNumber(diagonalNumber);
    cell.setDiagonalStyle(handle.getDiagonalStyle());
    cell.setDiagonalWidth(createDimension(handle.getDiagonalThickness(),false));
  }
  int antidiagonalNumber=handle.getAntidiagonalNumber();
  if (antidiagonalNumber > 0) {
    cell.setAntidiagonalNumber(antidiagonalNumber);
    cell.setAntidiagonalStyle(handle.getAntidiagonalStyle());
    cell.setAntidiagonalWidth(createDimension(handle.getAntidiagonalThickness(),false));
  }
  setCurrentElement(cell);
}