-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
24
-
None
-
In Review
-
generic
-
windows
If any one ComponentUI (like a ButtonUI) throws a RuntimeException while it is uninstalling, then all other components fail to update when the user changes certain system settings on Windows.
Instructions (Windows-only):
1. Open attached Java app
2. Open system Settings app
3. Click "Accessibility"
4. Click "Contrast Themes"
5. Change the theme (for ex: click "Desert" or "Dusk")
6. Click "Apply"
Observe in java app the background panel changed color as expected. An exception appears in the console when we asked the button to update its UI (this is also expected).
Repeat steps 5 & 6.
Observe the background panel no longer changes color, and the ButtonUI does NOT throw an exception because it isn't consulted.
The expected behavior is for the panel to change background color again, and for the ButtonUI to throw a second exception.
(There may be a way to reproduce this on other platforms, but I don't know what system properties to use to trigger this kind of refresh.)
Instructions (Windows-only):
1. Open attached Java app
2. Open system Settings app
3. Click "Accessibility"
4. Click "Contrast Themes"
5. Change the theme (for ex: click "Desert" or "Dusk")
6. Click "Apply"
Observe in java app the background panel changed color as expected. An exception appears in the console when we asked the button to update its UI (this is also expected).
Repeat steps 5 & 6.
Observe the background panel no longer changes color, and the ButtonUI does NOT throw an exception because it isn't consulted.
The expected behavior is for the panel to change background color again, and for the ButtonUI to throw a second exception.
(There may be a way to reproduce this on other platforms, but I don't know what system properties to use to trigger this kind of refresh.)
- links to
-
Review(master) openjdk/jdk/27205