RFR: 8280818: Expand bug8033699.java to iterate over all LaFs
Damon Nguyen
dnguyen at openjdk.org
Tue Mar 11 22:55:31 UTC 2025
On Mon, 10 Mar 2025 14:48:09 GMT, Rajat Mahajan <rmahajan at openjdk.org> wrote:
> Added code to Iterates over all installed Look and Feel environments and added related exception handling.
>
> Testing done.
I also tested this and the test passes consistently on all LAFs.
test/jdk/javax/swing/JRadioButton/8033699/bug8033699.java line 131:
> 129: UIManager.setLookAndFeel(laf.getClassName());
> 130: } catch (ClassNotFoundException | InstantiationException |
> 131: IllegalAccessException | UnsupportedLookAndFeelException e) {
This can just be set to `Exception e` rather than expanding it into separate exceptions.
-------------
Marked as reviewed by dnguyen (Committer).
PR Review: https://git.openjdk.org/jdk/pull/23964#pullrequestreview-2676297061
PR Review Comment: https://git.openjdk.org/jdk/pull/23964#discussion_r1990230558
More information about the client-libs-dev
mailing list