RFR: 8068293: [TEST_BUG] Test closed/com/sun/java/swing/plaf/motif/InternalFrame/4150591/bug4150591.java fails with GTKLookAndFeel [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Thu Oct 23 02:20:33 UTC 2025
> Test fails in GTKLookAndFeel with NPE
>
> java.lang.NullPointerException
> at javax.swing.border.BevelBorder.<init>(BevelBorder.java:78)
> at javax.swing.BorderFactory.createBevelBorder(BorderFactory.java:155)
> at com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane$Title.<init>(MotifInternalFrameTitlePane.java:325)
>
> because `BorderFactory.createBevelBorder` tries to use brighter shade of highlight and shadow color which it tries to obtain from
> `UIManager.getColor("activeCaptionBorder")` and `UIManager.getColor("inactiveCaptionBorder")` both of which are not defined in GTK L&F as caption border are not used there
>
> Fix is made to not use these color to create BevelBorder if these colors are not present..
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
Update doc
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27839/files
- new: https://git.openjdk.org/jdk/pull/27839/files/6051c685..cb9a559b
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27839&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27839&range=00-01
Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27839.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27839/head:pull/27839
PR: https://git.openjdk.org/jdk/pull/27839
More information about the client-libs-dev
mailing list