Program: 66797
Project: 66797
Buggy source:
/** 
 * The constructor.
 * @param _cwa
 * @param _render
 * @param _lia
 * @param _faX
 * @param _faY
 * @param _bShowAsTape
 */
public CurveRenderer(ChartWithAxes _cwa,BaseRenderer _render,LineAttributes _lia,Location[] _lo,double _zeroLocation,boolean _bShowAsTape,double _tapeWidth,boolean _bFillArea,boolean _bTranslucent,boolean _bUseLastState,boolean _bDeferred,boolean _bKeepState,Fill paletteEntry,boolean usePaletteLineColor,boolean connectMissingValue){
  cwa=_cwa;
  bRendering3D=_lo instanceof Location3D[];
  loPoints=_lo;
  tempPoints=_lo;
  bConnectMissingValue=connectMissingValue;
  bFillArea=_bFillArea;
  bShowAsTape=_bShowAsTape;
  bDeferred=_bDeferred;
  loa=(bShowAsTape || bFillArea) ? new Location[4] : null;
  loa3d=(bRendering3D) ? new Location3D[4] : null;
  if (_tapeWidth == -1) {
    dTapeWidth=_cwa.getSeriesThickness() * _render.getDeviceScale();
  }
 else {
    dTapeWidth=_tapeWidth;
  }
  if (loa != null) {
    for (int i=0; i < 4; i++) {
      loa[i]=goFactory.createLocation(0,0);
    }
  }
  if (loa3d != null) {
    for (int i=0; i < 4; i++) {
      loa3d[i]=goFactory.createLocation3D(0,0,0);
    }
  }
  lia=_lia;
  zeroLocation=_zeroLocation;
  bTranslucent=_bTranslucent;
  oSource=StructureSource.createSeries(_render.getSeries());
  dc=_render.getDeferredCache();
  this.iRender=_render;
  loStart=goFactory.createLocation(0,0);
  loEnd=goFactory.createLocation(0,0);
  bUseLastState=_bUseLastState;
  bKeepState=_bKeepState;
  if (usePaletteLineColor) {
    lia=goFactory.copyOf(lia);
    lia.setColor(FillUtil.getColor(paletteEntry));
  }
  if (bFillArea) {
    fillColor=FillUtil.getColor(paletteEntry);
    tapeColor=fillColor.brighter();
    sideColor=fillColor.darker();
  }
 else {
    fillColor=lia.getColor();
    tapeColor=lia.getColor().brighter();
    sideColor=lia.getColor().darker();
  }
  if (bTranslucent) {
    fillColor=fillColor.translucent();
    tapeColor=tapeColor.translucent();
    sideColor=sideColor.translucent();
  }
}

Fixed version (ground truth):
/** 
 * The constructor.
 * @param _cwa
 * @param _render
 * @param _lia
 * @param _faX
 * @param _faY
 * @param _bShowAsTape
 */
public CurveRenderer(ChartWithAxes _cwa,BaseRenderer _render,LineAttributes _lia,Location[] _lo,double _zeroLocation,boolean _bShowAsTape,double _tapeWidth,boolean _bFillArea,boolean _bTranslucent,boolean _bUseLastState,boolean _bDeferred,boolean _bKeepState,Fill paletteEntry,boolean usePaletteLineColor,boolean connectMissingValue){
  cwa=_cwa;
  bRendering3D=_lo instanceof Location3D[];
  loPoints=_lo;
  tempPoints=_lo;
  bConnectMissingValue=connectMissingValue;
  bFillArea=_bFillArea;
  bShowAsTape=_bShowAsTape;
  bDeferred=_bDeferred;
  loa=(bShowAsTape || bFillArea) ? new Location[4] : null;
  loa3d=(bRendering3D) ? new Location3D[4] : null;
  if (_tapeWidth == -1) {
    dTapeWidth=_cwa.getSeriesThickness() * _render.getDeviceScale();
  }
 else {
    dTapeWidth=_tapeWidth;
  }
  if (loa != null) {
    for (int i=0; i < 4; i++) {
      loa[i]=goFactory.createLocation(0,0);
    }
  }
  if (loa3d != null) {
    for (int i=0; i < 4; i++) {
      loa3d[i]=goFactory.createLocation3D(0,0,0);
    }
  }
  lia=_lia;
  zeroLocation=_zeroLocation;
  bTranslucent=_bTranslucent;
  oSource=StructureSource.createSeries(_render.getSeries());
  dc=_render.getDeferredCache();
  dc.setPlaneShadowsComparator(WrappedInstruction.getDefaultComarator());
  dc.setPlanesComparator(WrappedInstruction.getDefaultComarator());
  this.iRender=_render;
  loStart=goFactory.createLocation(0,0);
  loEnd=goFactory.createLocation(0,0);
  bUseLastState=_bUseLastState;
  bKeepState=_bKeepState;
  if (usePaletteLineColor) {
    lia=goFactory.copyOf(lia);
    lia.setColor(FillUtil.getColor(paletteEntry));
  }
  if (bFillArea) {
    fillColor=FillUtil.getColor(paletteEntry);
    tapeColor=fillColor.brighter();
    sideColor=fillColor.darker();
  }
 else {
    fillColor=lia.getColor();
    tapeColor=lia.getColor().brighter();
    sideColor=lia.getColor().darker();
  }
  if (bTranslucent) {
    fillColor=fillColor.translucent();
    tapeColor=tapeColor.translucent();
    sideColor=sideColor.translucent();
  }
}