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

Cannot Draw a Polygon using fillPolygon with more than 256 vertices

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 7u45
    • javafx
    • None

      If it tries to draw a polygon with more than 256 vertices, it throws an ArrayIndexOutOfBoundsException mentioning that it tries to access 512th index.

      I tried to draw a polygon with 348 vertices which passes (348 xPoints, 348 yPoints, 348) in to following function.
      fillPolygon(double[] xPoints, double[] yPoints, int nPoints)

      Then it throws an ArrayIndexOutOfBoundsException saying it tries to access 512th index. This exception is thrown in any case where it passes more than 256 points into the fillPolygon function.

      Used java version is JDK 7u45 release which includes JavaFX version 2.2.45.

            kcr Kevin Rushforth
            psafrata Pavel Ĺ afrata
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: