Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6409478

REGRESSION: Infinite loop in GeneralPath.contains(x, y) for NaN values

XMLWordPrintable

    • 2d
    • b77
    • 6
    • b81
    • generic
    • generic

      The following test case sends the runtime into an infinite loop as of
      Mustang b77:

      import java.awt.geom.GeneralPath;

      public class ContainsNaN {
          public static void main(String argv[]) {
              GeneralPath gp = new GeneralPath();
              gp.moveTo(0, 0);
              gp.quadTo(100, 0, 100, 100);
              gp.contains(Double.NaN, Double.NaN);
          }
      }

            flar Jim Graham
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: