[OpenJDK 2D-Dev] Fixes for two bugs in stroker

Denis Lila dlila at redhat.com
Wed Sep 22 13:30:16 UTC 2010

Hello Omair.

I'm sorry it took me so long to get to this.
The first patch looks good.
The second one breaks miter joins for counter clockwise paths. For
example, if the path is p.moveTo(0, 0);p.lineTo(0, 100);p.lineTo(100,100);
p.lineTo(100,0);p.closePath(); the miter join on the close won't be
drawn properly and new artifacts will be introduced on round joins (bevel
joins will simply not be drawn).

PS. I don't think that this (bug 6850438) is a bug. The specification
is a bit loose on the behaviour of BasicStroke.createStrokedShape. As
long as the created shape is filled properly, the behaviour is correct.
It would probably be a good idea to reclassify this as a RFE.
Anyway, the last thing I've been working on fixes this:


----- "Omair Majid" <omajid at redhat.com> wrote:

> Hi,
> A while ago I filed
> http://bugs.openjdk.java.net/show_bug.cgi?id=100046
> and
> http://bugs.openjdk.java.net/show_bug.cgi?id=100047
> which contain fixes for two bugs in lines drawn by the Stroker. Will 
> someone be kind enough to review these patches? The bug reports
> contain 
> patches and images showing the differences in output.
> Thanks,
> Omair

More information about the 2d-dev mailing list