-
Bug
-
Resolution: Fixed
-
P5
-
9, 17, 21, 22, 23
-
b09
There is a suspicious condition in the 'com.sun.java.swing.plaf.gtk.GTKPainter#paintPopupMenuBackground' method:
BufferedImage img = ENGINE.finishPainting();
if(!isHW) {
int border = img.getRGB(0, h / 2);
if (img != null && border == img.getRGB(w / 2, h / 2)) {
'img != null' condition is always true, because it's only checked after 'img.getRGB` method is called - it means img can't be 'null'.
BufferedImage img = ENGINE.finishPainting();
if(!isHW) {
int border = img.getRGB(0, h / 2);
if (img != null && border == img.getRGB(w / 2, h / 2)) {
'img != null' condition is always true, because it's only checked after 'img.getRGB` method is called - it means img can't be 'null'.
- relates to
-
JDK-8160160 The menu displayed nothing with the option"-server -d64 -Xmixed -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel".
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/29f0f174
-
Review(master) openjdk/jdk/20308