-
Bug
-
Resolution: Unresolved
-
P4
-
8, 9
-
Cause Known
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.
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.