Program: 61705
Project: 61705
Buggy source:
protected void finalizePath(){
  if (path != null) {
    if (fillPaint != null) {
      if (fillPaint instanceof MultipleGradientPaint) {
        AffineTransform oldAf=graphics.getTransform();
        if (fillPathPaint != null) {
          graphics.setPaint(fillPathPaint);
        }
        graphics.fill(path);
        graphics.setClip(path);
        Matrix inverse=null;
        try {
          inverse=new Matrix(new AffineTransform(fillTransform).createInverse());
        }
 catch (        NoninvertibleTransformException ex) {
        }
        fillTransform.preConcatenate(oldAf);
        graphics.setTransform(fillTransform);
        graphics.setPaint(fillPaint);
        if (inverse != null) {
          ExportRectangle rect=inverse.transform(new ExportRectangle(path.getBounds2D()));
          double minX=rect.xMin;
          double minY=rect.yMin;
          graphics.fill(new java.awt.Rectangle((int)minX,(int)minY,(int)(rect.xMax - minX),(int)(rect.yMax - minY)));
        }
        graphics.setTransform(oldAf);
        graphics.setClip(null);
      }
 else       if (fillPaint instanceof TexturePaint) {
        AffineTransform oldAf=graphics.getTransform();
        graphics.setClip(path);
        Matrix inverse=null;
        try {
          inverse=new Matrix(new AffineTransform(fillTransform).createInverse());
        }
 catch (        NoninvertibleTransformException ex) {
        }
        fillTransform.preConcatenate(oldAf);
        graphics.setTransform(fillTransform);
        graphics.setPaint(fillPaint);
        if (inverse != null) {
          ExportRectangle rect=inverse.transform(new ExportRectangle(path.getBounds2D()));
          double minX=rect.xMin;
          double minY=rect.yMin;
          graphics.setComposite(AlphaComposite.SrcOver);
          graphics.fill(new java.awt.Rectangle((int)minX,(int)minY,(int)(rect.xMax - minX),(int)(rect.yMax - minY)));
        }
        graphics.setTransform(oldAf);
        graphics.setClip(null);
      }
 else {
        graphics.setPaint(fillPaint);
        graphics.fill(path);
      }
    }
    if (lineColor != null) {
      graphics.setColor(lineColor);
      graphics.setStroke(lineStroke == null ? defaultStroke : lineStroke);
      graphics.draw(path);
    }
  }
  path=new GeneralPath(GeneralPath.WIND_EVEN_ODD);
  lineStroke=null;
  lineColor=null;
  fillPaint=null;
}

Fixed version (ground truth):
protected void finalizePath(){
  if (path != null) {
    if (fillPaint != null) {
      graphics.setComposite(AlphaComposite.SrcOver);
      if (fillPaint instanceof MultipleGradientPaint) {
        AffineTransform oldAf=graphics.getTransform();
        if (fillPathPaint != null) {
          graphics.setPaint(fillPathPaint);
        }
        graphics.fill(path);
        graphics.setClip(path);
        Matrix inverse=null;
        try {
          inverse=new Matrix(new AffineTransform(fillTransform).createInverse());
        }
 catch (        NoninvertibleTransformException ex) {
        }
        fillTransform.preConcatenate(oldAf);
        graphics.setTransform(fillTransform);
        graphics.setPaint(fillPaint);
        if (inverse != null) {
          ExportRectangle rect=inverse.transform(new ExportRectangle(path.getBounds2D()));
          double minX=rect.xMin;
          double minY=rect.yMin;
          graphics.fill(new java.awt.Rectangle((int)minX,(int)minY,(int)(rect.xMax - minX),(int)(rect.yMax - minY)));
        }
        graphics.setTransform(oldAf);
        graphics.setClip(null);
      }
 else       if (fillPaint instanceof TexturePaint) {
        AffineTransform oldAf=graphics.getTransform();
        graphics.setClip(path);
        Matrix inverse=null;
        try {
          inverse=new Matrix(new AffineTransform(fillTransform).createInverse());
        }
 catch (        NoninvertibleTransformException ex) {
        }
        fillTransform.preConcatenate(oldAf);
        graphics.setTransform(fillTransform);
        graphics.setPaint(fillPaint);
        if (inverse != null) {
          ExportRectangle rect=inverse.transform(new ExportRectangle(path.getBounds2D()));
          double minX=rect.xMin;
          double minY=rect.yMin;
          graphics.fill(new java.awt.Rectangle((int)minX,(int)minY,(int)(rect.xMax - minX),(int)(rect.yMax - minY)));
        }
        graphics.setTransform(oldAf);
        graphics.setClip(null);
      }
 else {
        graphics.setPaint(fillPaint);
        graphics.fill(path);
      }
    }
    if (lineColor != null) {
      graphics.setColor(lineColor);
      graphics.setStroke(lineStroke == null ? defaultStroke : lineStroke);
      graphics.draw(path);
    }
  }
  path=new GeneralPath(GeneralPath.WIND_EVEN_ODD);
  lineStroke=null;
  lineColor=null;
  fillPaint=null;
}