Program: 72908
Project: 72908
Buggy source:
protected void readReportItemField(DataInputStream in,ReportItemDesign design,short fieldType) throws IOException {
switch (fieldType) {
case FIELD_X:
    DimensionType x=readDimension(in);
  design.setX(x);
break;
case FIELD_Y:
DimensionType y=readDimension(in);
design.setY(y);
break;
case FIELD_HEIGHT:
DimensionType height=readDimension(in);
design.setHeight(height);
break;
case FIELD_WIDTH:
DimensionType width=readDimension(in);
design.setWidth(width);
break;
case FIELD_BOOKMARK:
String bookmark=IOUtil.readString(in);
design.setBookmark(bookmark);
break;
case FIELD_TOC:
String toc=IOUtil.readString(in);
design.setTOC(toc);
break;
case FIELD_ON_CREATE:
String onCreatScriptText=IOUtil.readString(in);
ScriptExpression onCreatScriptExpr=new ScriptExpression(onCreatScriptText);
design.setOnCreate(onCreatScriptExpr);
break;
case FIELD_ON_RENDER:
String OnRenderScriptText=IOUtil.readString(in);
ScriptExpression OnRenderScriptExpr=new ScriptExpression(OnRenderScriptText);
design.setOnRender(OnRenderScriptExpr);
break;
case FIELD_ON_PAGE_BREAK:
String OnPageBreakScriptText=IOUtil.readString(in);
ScriptExpression OnPageBreakScriptExpr=new ScriptExpression(OnPageBreakScriptText);
design.setOnPageBreak(OnPageBreakScriptExpr);
break;
case FIELD_VISIBILITY:
VisibilityDesign visibility=readVisibility(in);
design.setVisibility(visibility);
break;
case FIELD_ACTION:
ActionDesign action=readAction(in);
design.setAction(action);
break;
case FIELD_USE_CACHED_RESULT:
boolean useCachedResult=IOUtil.readBool(in);
design.setUseCachedResult(useCachedResult);
break;
default :
readStyledElementField(in,design,fieldType);
}
}

Fixed version (ground truth):
protected void readReportItemField(DataInputStream in,ReportItemDesign design,short fieldType) throws IOException {
switch (fieldType) {
case FIELD_X:
    DimensionType x=readDimension(in);
  design.setX(x);
break;
case FIELD_Y:
DimensionType y=readDimension(in);
design.setY(y);
break;
case FIELD_HEIGHT:
DimensionType height=readDimension(in);
design.setHeight(height);
break;
case FIELD_WIDTH:
DimensionType width=readDimension(in);
design.setWidth(width);
break;
case FIELD_BOOKMARK:
String bookmark=IOUtil.readString(in);
design.setBookmark(bookmark);
break;
case FIELD_TOC:
String toc=IOUtil.readString(in);
design.setTOC(toc);
break;
case FIELD_ON_CREATE:
String onCreatScriptText=IOUtil.readString(in);
ScriptExpression onCreatScriptExpr=new ScriptExpression(onCreatScriptText);
design.setOnCreate(onCreatScriptExpr);
break;
case FIELD_ON_RENDER:
String OnRenderScriptText=IOUtil.readString(in);
ScriptExpression OnRenderScriptExpr=new ScriptExpression(OnRenderScriptText);
design.setOnRender(OnRenderScriptExpr);
break;
case FIELD_ON_PAGE_BREAK:
String OnPageBreakScriptText=IOUtil.readString(in);
ScriptExpression OnPageBreakScriptExpr=new ScriptExpression(OnPageBreakScriptText);
design.setOnPageBreak(OnPageBreakScriptExpr);
break;
case FIELD_VISIBILITY:
VisibilityDesign visibility=readVisibility(in);
design.setVisibility(visibility);
break;
case FIELD_ACTION:
ActionDesign action=readAction(in);
design.setAction(action);
break;
case FIELD_ACTION_V1:
ActionDesign action1=readActionV1(in);
design.setAction(action1);
break;
case FIELD_USE_CACHED_RESULT:
boolean useCachedResult=IOUtil.readBool(in);
design.setUseCachedResult(useCachedResult);
break;
default :
readStyledElementField(in,design,fieldType);
}
}