Program: 73383
Project: 73383
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=(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;
}

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,null);
object=cellContent;
break;
case IContent.CONTAINER_CONTENT:
ContainerContent containerContent=(ContainerContent)reportContent.createContainerContent();
containerContent.setVersion(version);
containerContent.readContent(oi,null);
object=containerContent;
break;
case IContent.DATA_CONTENT:
DataContent dataContent=(DataContent)reportContent.createDataContent();
dataContent.setVersion(version);
dataContent.readContent(oi,null);
object=dataContent;
break;
case IContent.FOREIGN_CONTENT:
ForeignContent foreignContent=(ForeignContent)reportContent.createForeignContent();
foreignContent.setVersion(version);
foreignContent.readContent(oi,null);
object=foreignContent;
break;
case IContent.IMAGE_CONTENT:
ImageContent imageContent=(ImageContent)reportContent.createImageContent();
imageContent.setVersion(version);
imageContent.readContent(oi,null);
object=imageContent;
break;
case IContent.LABEL_CONTENT:
LabelContent labelContent=(LabelContent)reportContent.createLabelContent();
labelContent.setVersion(version);
labelContent.readContent(oi,null);
object=labelContent;
break;
case IContent.PAGE_CONTENT:
PageContent pageContent=(PageContent)reportContent.createPageContent();
pageContent.setVersion(version);
pageContent.readContent(oi,null);
object=pageContent;
break;
case IContent.ROW_CONTENT:
RowContent rowContent=(RowContent)reportContent.createRowContent();
rowContent.setVersion(version);
rowContent.readContent(oi,null);
object=rowContent;
break;
case IContent.TABLE_BAND_CONTENT:
TableBandContent tableBandContent=(TableBandContent)reportContent.createTableBandContent();
tableBandContent.setVersion(version);
tableBandContent.readContent(oi,null);
object=tableBandContent;
break;
case IContent.TABLE_CONTENT:
TableContent tableContent=(TableContent)reportContent.createTableContent();
tableContent.setVersion(version);
tableContent.readContent(oi,null);
object=tableContent;
break;
case IContent.TEXT_CONTENT:
TextContent textContent=(TextContent)reportContent.createTextContent();
textContent.setVersion(version);
textContent.readContent(oi,null);
object=textContent;
break;
default :
throw new ClassNotFoundException("String_Node_Str" + contentType);
}
return object;
}