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

CornerRadii(horiz, vert, vert, horiz, horiz, vert, vert, horiz) with horiz != vert mistaken for 'uniform'

XMLWordPrintable

      FULL PRODUCT VERSION :
      1.8.0_101

      A DESCRIPTION OF THE PROBLEM :
      Implementation of CornerRadii(double topLeftHorizontalRadius, double topLeftVerticalRadius,, ..)
      determines 'uniform' based on separately comparing all the horizontal and vertical radii.

      When called as
      CornerRadii(horiz, vert, vert, horiz, horiz, vert, vert, horiz,false, false, false, false, false, false, false, false)
      with horiz != vert is still considers all radii as 'uniform' and thus works as if just
      CornerRadii(horiz) had been called.

      Related to JDK-8087444

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a CornerRadii(horiz, vert, vert, horiz, horiz, vert, vert, horiz,false, false, false, false, false, false, false, false) with horiz different from vert.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A corner with different horizontal and vertical radii.
      ACTUAL -
      A corner with just one radius used for both horizontal and vertical.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Tweak one of the radii a tiny bit to trick the "uniform" check:


      CornerRadii(horiz, vert, vert, horiz, horiz, vert, vert, horiz + 0.5, false, false, false, false, false, false, false, false)

            ckyang Chien Yang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: