-
Bug
-
Resolution: Fixed
-
P2
-
8, 8u40, 9
-
b28
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056499 | emb-9 | Alexandr Scherbatiy | P2 | Resolved | Fixed | master |
JDK-8071253 | 8u60 | Alexandr Scherbatiy | P2 | Resolved | Fixed | b01 |
JDK-8063862 | 8u45 | Alexandr Scherbatiy | P2 | Resolved | Fixed | b01 |
JDK-8058299 | 8u40 | Alexandr Scherbatiy | P2 | Closed | Fixed | b08 |
JDK-8064483 | 8u31 | Alexandr Scherbatiy | P2 | Closed | Fixed | b08 |
JDK-8070130 | emb-8u47 | Alexandr Scherbatiy | P2 | Resolved | Fixed | team |
JDK-8065245 | emb-8u33 | Alexandr Scherbatiy | P2 | Resolved | Fixed | b03 |
JDK-8072280 | 7u85 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8058300 | 7u80 | Dmitry Markov | P2 | Resolved | Fixed | b03 |
JDK-8064663 | 7u79 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8064511 | 7u76 | Dmitry Markov | P2 | Resolved | Fixed | b08 |
JDK-8064482 | 7u75 | Dmitry Markov | P2 | Closed | Fixed | b08 |
This problem is not observed with JDK8u5 for example.
The following code if run with JDK9b23 with -Djava.awt.headless=true
------------------------------------------------------------
public class JPM {
public static void main(String[] args) {
new javax.swing.JPopupMenu();
}
}
------------------------------------------------------------
results in
Exception in thread "main" java.lang.NullPointerException
at javax.swing.RepaintManager.currentManager(RepaintManager.java:263)
at javax.swing.JComponent.repaint(JComponent.java:4802)
at java.awt.Component.repaint(Component.java:3372)
at javax.swing.JComponent.setBorder(JComponent.java:1802)
at javax.swing.LookAndFeel.installBorder(LookAndFeel.java:229)
at javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults(BasicPopupMenuUI.java:102)
at javax.swing.plaf.basic.BasicPopupMenuUI.installUI(BasicPopupMenuUI.java:91)
at javax.swing.JComponent.setUI(JComponent.java:666)
at javax.swing.JPopupMenu.setUI(JPopupMenu.java:220)
at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:229)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:194)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:179)
at JPM.main(JPM.java:3)
The following JCK9 tests fail due to this issue
api/javax_swing/JPopupMenu/descriptions.html#updateUI
api/javax_swing/JPopupMenu/descriptions.html#getAccessibleXXX
api/javax_swing/JPopupMenu/descriptions.html#insert
api/javax_swing/JPopupMenu/descriptions.html#Action
api/javax_swing/JPopupMenu/descriptions.html#GetXXXListeners
api/javax_swing/JPopupMenu/descriptions.html#getXXX
api/javax_swing/JPopupMenu/descriptions.html#Ctor
api/javax_swing/JPopupMenu/AccessibleJPopupMenu/index.html#AccessibleContext
api/javax_swing/plaf/PopupMenuUI/index.html#Ctor
api/javax_swing/JPopupMenu/AccessibleJPopupMenu/index.html#Ctor
api/javax_swing/JPopupMenu/Separator/index.html#Ctor
api/javax_swing/JPopupMenu/descriptions.html#add
api/javax_swing/JPopupMenu/descriptions.html#set_isXXX
api/javax_swing/JPopupMenu/descriptions.html#MenuListenerXXX
Reproduced with Windows and Solaris-sparcv9
- backported by
-
JDK-8058299 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Closed
-
-
JDK-8056499 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8058300 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8063862 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8064511 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8064663 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8065245 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8070130 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8071253 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8072280 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Resolved
-
-
JDK-8064482 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Closed
-
-
JDK-8064483 [headless] JPopupMenu creation in headless mode with JDK9b23 causes NPE
-
- Closed
-
- duplicates
-
JDK-8064420 [headless] Several tests on java.awt started to fail in headless mode on JDK7u76 and JDK8u31
-
- Closed
-
-
JDK-8058922 [headless] Can't create a JButton in headless mode (more AppContext woes)
-
- Closed
-
- relates to
-
JDK-8043610 Sorting columns in JFileChooser fails with AppContext NPE
-
- Resolved
-
-
JDK-8057120 [headless] [macosx] massive NPEs at javax.swing.RepaintManager.currentManager, sun.awt.SunToolkit.getSystemEventQueueImplPP
-
- Closed
-