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

assertion failure on win32 when drawing Polygons with too few points

XMLWordPrintable

    • 2d
    • hopper
    • sparc
    • solaris_2.5.1

      DESCRIPTION
      ---------------

      SPURIOUS ASSERT + JDK SPEC ISSUE

      The call to Polygon in file awt_Graphics.cpp at line #631 asserts if nPoints
      is less than 3. This is because AWT does not specify minimum number of
      points for Polygon bug Win32 api requires minimum three points.
      Oracle WebForms bug only requires removal of assert for less than three
      points. JavaSoft needs to update the spec and clarify the issue about
      minimum number of points for a polygon. (Should it draw a point for 1 point
      and line for 2 points?)

       
      Verified fix with j2se build 1.4.1-beta-b09, mixed mode on w2k.
      ###@###.### 2002-04-24

            flar Jim Graham
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: