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

Rotate Transformation never invalidates inverseCache

    XMLWordPrintable

Details

    • b11
    • generic
    • generic

    Description

      ADDITIONAL SYSTEM INFORMATION :
      any system

      A DESCRIPTION OF THE PROBLEM :
      https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/javafx/scene/transform/Rotate.java#L772

      The rotate class is incapable of correctly applying an inverseTransformation as its internal inverseCache object is never invalidated and is thus never recalculated from its default value.

      this issue would be correctly fixed if this code is added at line 772 of the Rotate java file as linked above.


              if (inverseCache != null) {
                  inverseCache.invalidate();
              }

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      apply any values other than the default to a Rotate object. attempt an inverse transformation with any input. it will fail.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      correct inverse transformation
      ACTUAL -
      no transformation

      CUSTOMER SUBMITTED WORKAROUND :
      apply rotation matrix data to an affine matrix and use that instead. Affine correctly applies inverse transformations

      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              lkostyra Lukasz Kostyra
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: