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

Cannot Draw a Polygon using fillPolygon with more than 256 vertices

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: