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

Dirty opts bug when toggling Group's visible property

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known

      Description

      Attached is a simple test program modified from HelloRectangle to toggle the visible property of Group and Rectangle. There is dirty opts bug render nothing when root (Group) visible property is set from false to true.

      To reproduce the bug:
      1) Compile and run GroupDirtyOptsBug.java
          You should see a Red rectangle.

      2) Hit "g" to toggle root's visible to false.
          You should see the Red rectangle disappear.

      3) Hit "s" to print the visible status. You should expect the following printed:
      root.isVisible = false, rect.isVisible = true
       
      4) Hit "g" again to toggle root's visible to true but the Red rectangle didn't appear.

      5) Hit "s" to print the visible status. You should expect the following printed:
      root.isVisible = true, rect.isVisible = true

      Now, run the program with -Dprism.dirtyopts=false to disable dirtyopts.
      You should see the Red rectangle toggle as you hit "g" to toggle root's visible.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ckyang Chien Yang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: