Program: 70600
Project: 70600
Buggy source:
protected void readReportItemField(DataInputStream in,ReportItemDesign design,short fieldType) throws IOException {
switch (fieldType) {
case FIELD_X:
    design.setX(readDimensionExpression(in));
  break;
case FIELD_Y:
design.setY(readDimensionExpression(in));
break;
case FIELD_HEIGHT:
design.setHeight(readDimensionExpression(in));
break;
case FIELD_WIDTH:
design.setWidth(readDimensionExpression(in));
break;
case FIELD_BOOKMARK:
Expression<String> bookmark=readStringConstant(in);
design.setBookmark(bookmark);
break;
case FIELD_TOC:
Expression<Object> toc=readObjectConstant(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);
}
}

Fixed version (ground truth):
protected void readReportItemField(DataInputStream in,ReportItemDesign design,short fieldType) throws IOException {
switch (fieldType) {
case FIELD_X:
    design.setX(readDimensionExpression(in));
  break;
case FIELD_Y:
design.setY(readDimensionExpression(in));
break;
case FIELD_HEIGHT:
design.setHeight(readDimensionExpression(in));
break;
case FIELD_WIDTH:
design.setWidth(readDimensionExpression(in));
break;
case FIELD_BOOKMARK:
Expression<String> bookmark=readStringExpression(in);
design.setBookmark(bookmark);
break;
case FIELD_TOC:
Expression<Object> toc=readObjectExpression(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);
}
}