Program: 73918
Project: 73918
Buggy source:
protected Object doRead(byte[] buffer) throws Exception {
  ByteArrayInputStream in=new ByteArrayInputStream(buffer);
  DataInputStream oi=new DataInputStream(in);
  Object object=new Object();
  int contentType=IOUtil.readInt(oi);
  int version=VERSION_1;
switch (contentType) {
case IContent.CELL_CONTENT:
    CellContent cellContent=new CellContent(reportContent);
  cellContent.setVersion(VERSION_1);
cellContent.readContent(oi);
object=cellContent;
break;
case IContent.CONTAINER_CONTENT:
ContainerContent containerContent=new ContainerContent(reportContent);
containerContent.setVersion(version);
containerContent.readContent(oi);
object=containerContent;
break;
case IContent.DATA_CONTENT:
DataContent dataContent=new DataContent(reportContent);
dataContent.setVersion(version);
dataContent.readContent(oi);
object=dataContent;
break;
case IContent.FOREIGN_CONTENT:
ForeignContent foreignContent=new ForeignContent(reportContent);
foreignContent.setVersion(version);
foreignContent.readContent(oi);
object=foreignContent;
break;
case IContent.IMAGE_CONTENT:
ImageContent imageContent=new ImageContent(reportContent);
imageContent.setVersion(version);
imageContent.readContent(oi);
object=imageContent;
break;
case IContent.LABEL_CONTENT:
LabelContent labelContent=new LabelContent(reportContent);
labelContent.setVersion(version);
labelContent.readContent(oi);
object=labelContent;
break;
case IContent.PAGE_CONTENT:
PageContent pageContent=new PageContent(reportContent);
pageContent.setVersion(version);
pageContent.readContent(oi);
object=pageContent;
break;
case IContent.ROW_CONTENT:
RowContent rowContent=new RowContent(reportContent);
rowContent.setVersion(version);
rowContent.readContent(oi);
object=rowContent;
break;
case IContent.TABLE_BAND_CONTENT:
TableBandContent tableBandContent=new TableBandContent(reportContent);
tableBandContent.setVersion(version);
tableBandContent.readContent(oi);
object=tableBandContent;
break;
case IContent.TABLE_CONTENT:
TableContent tableContent=new TableContent(reportContent);
tableContent.setVersion(version);
tableContent.readContent(oi);
object=tableContent;
break;
case IContent.TEXT_CONTENT:
TextContent textContent=new TextContent(reportContent);
textContent.setVersion(version);
textContent.readContent(oi);
object=textContent;
break;
default :
throw new ClassNotFoundException("String_Node_Str" + contentType);
}
return object;
}

Fixed version (ground truth):
protected Object doRead(byte[] buffer) throws Exception {
  ByteArrayInputStream in=new ByteArrayInputStream(buffer);
  DataInputStream oi=new DataInputStream(in);
  Object object=new Object();
  int contentType=IOUtil.readInt(oi);
  int version=VERSION_1;
switch (contentType) {
case IContent.CELL_CONTENT:
    CellContent cellContent=(CellContent)reportContent.createCellContent();
  cellContent.setVersion(VERSION_1);
cellContent.readContent(oi);
object=cellContent;
break;
case IContent.CONTAINER_CONTENT:
ContainerContent containerContent=(ContainerContent)reportContent.createContainerContent();
containerContent.setVersion(version);
containerContent.readContent(oi);
object=containerContent;
break;
case IContent.DATA_CONTENT:
DataContent dataContent=(DataContent)reportContent.createDataContent();
dataContent.setVersion(version);
dataContent.readContent(oi);
object=dataContent;
break;
case IContent.FOREIGN_CONTENT:
ForeignContent foreignContent=foreignContent=(ForeignContent)reportContent.createForeignContent();
foreignContent.setVersion(version);
foreignContent.readContent(oi);
object=foreignContent;
break;
case IContent.IMAGE_CONTENT:
ImageContent imageContent=(ImageContent)reportContent.createImageContent();
imageContent.setVersion(version);
imageContent.readContent(oi);
object=imageContent;
break;
case IContent.LABEL_CONTENT:
LabelContent labelContent=(LabelContent)reportContent.createLabelContent();
labelContent.setVersion(version);
labelContent.readContent(oi);
object=labelContent;
break;
case IContent.PAGE_CONTENT:
PageContent pageContent=(PageContent)reportContent.createPageContent();
pageContent.setVersion(version);
pageContent.readContent(oi);
object=pageContent;
break;
case IContent.ROW_CONTENT:
RowContent rowContent=(RowContent)reportContent.createRowContent();
rowContent.setVersion(version);
rowContent.readContent(oi);
object=rowContent;
break;
case IContent.TABLE_BAND_CONTENT:
TableBandContent tableBandContent=(TableBandContent)reportContent.createTableBandContent();
tableBandContent.setVersion(version);
tableBandContent.readContent(oi);
object=tableBandContent;
break;
case IContent.TABLE_CONTENT:
TableContent tableContent=(TableContent)reportContent.createTableContent();
tableContent.setVersion(version);
tableContent.readContent(oi);
object=tableContent;
break;
case IContent.TEXT_CONTENT:
TextContent textContent=(TextContent)reportContent.createTextContent();
textContent.setVersion(version);
textContent.readContent(oi);
object=textContent;
break;
default :
throw new ClassNotFoundException("String_Node_Str" + contentType);
}
return object;
}