JDK-8048506 : [macosx] javax.swing.PopupFactory issue with null owner
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u20,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2014-06-27
  • Updated: 2015-01-21
  • Resolved: 2014-06-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u76Fixed 8u20Fixed 9 b24Fixed
Related Reports
Duplicate :  
Relates :  
Description
A regression (I hope, easily fixable) caused two old tests failure with NPE in 

at sun.awt.EmbeddedFrame.getAppletIfAncestorOf(EmbeddedFrame.java:509)
at javax.swing.PopupFactory.getPopup(PopupFactory.java:246)
at javax.swing.PopupFactory.access$000(PopupFactory.java:63)
at javax.swing.PopupFactory$1.getHeavyWeightPopup(PopupFactory.java:70)
at com.apple.laf.ScreenPopupFactory.getPopup(ScreenPopupFactory.java:59)
at PopTest01.doLayout(PopTest01.java:219)
at PopTest01$1.run(PopTest01.java:70) 

Affected is, OS X only and jdk9 client PIT build circa b20.

Tests:
Swing_JMenu/Automated/PopBetaTest04
Swing_JMenu/Automated/PopTest01
Comments
javax/swing/JMenuItem/6883341/bug6883341.java
14-07-2014

closed/javax/swing/JPopupMenu/4664949/bug4664949.java closed/javax/swing/JPopupMenu/6492266/bug6492266.java javax/swing/JPopupMenu/6675802/bug6675802.java closed/javax/swing/Popup/6514582/bug6514582.java
14-07-2014

SQE is ok to take the fix in 8u20.
02-07-2014

This regression was caused by fix for JDK-8042465. The fix is quite simple: it is necessary to add null check to PopupFactory.getPopup() method.
30-06-2014