United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7036754 OpenJDK: some quads can generate non-finite values in the Stroker
JDK-7036754 : OpenJDK: some quads can generate non-finite values in the Stroker

Details
Type:
Bug
Submit Date:
2011-04-14
Status:
Closed
Updated Date:
2011-05-25
Project Name:
JDK
Resolved Date:
2011-05-23
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports

Sub Tasks

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.
                                     
2011-04-28



Hardware and Software, Engineered to Work Together