JDK-7036754 : OpenJDK: some quads can generate non-finite values in the Stroker
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-04-14
  • Updated: 2011-05-25
  • Resolved: 2011-05-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b142Fixed
Description
The following quadratic curve can cause the Pisces stroking engine used in OpenJDK to generate infinity values during widening.

        Shape s = new QuadCurve2D.Float(839.24677f, 508.97888f,
                                        839.2953f, 508.97122f,
                                        839.3438f, 508.96353f);
        s = new BasicStroke(10f).createStrokedShape(s);

Comments
EVALUATION Fixed by testing for non-finite values from the line intersections in the code that generates parallel quad curves.
28-04-2011