[OpenJDK 2D-Dev] Bug in pisces Stroker (div by zero)

Mark Wielaard mjw at redhat.com
Thu Jun 4 12:50:19 UTC 2009


On Fri, 2008-11-21 at 22:51 +0100, Mark Wielaard wrote:
> There is a bug in the pisces Stroker in finish(). When ldx and ldy are
> so small (zero) that lineLength() will return zero, then you will get a
> div by zero exception.
> You can see this with for example this webstart application (you will
> need to have IcedTeaWebstart [netx] installed):
> http://linuxhippy.blogspot.com/2008/11/jgears2-rendermark.html
> java.lang.ArithmeticException: / by zero
>   at sun.java2d.pisces.Stroker.finish(Stroker.java:698)
>   at sun.java2d.pisces.Stroker.close(Stroker.java:592)
>   [...]

To make sure that the patch isn't forgotten I also filed this as:



More information about the 2d-dev mailing list