--- old/src/share/classes/sun/java2d/pipe/PixelToShapeConverter.java 2012-12-10 23:21:34.742008800 +0400 +++ new/src/share/classes/sun/java2d/pipe/PixelToShapeConverter.java 2012-12-10 23:21:34.585999900 +0400 @@ -103,12 +103,12 @@ GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if (nPoints > 0) { gp.moveTo(xPoints[0], yPoints[0]); - } - for (int i = 1; i < nPoints; i++) { - gp.lineTo(xPoints[i], yPoints[i]); - } - if (close) { - gp.closePath(); + for (int i = 1; i < nPoints; i++) { + gp.lineTo(xPoints[i], yPoints[i]); + } + if (close) { + gp.closePath(); + } } return gp; }