JDK-8051587 : Tests javax/swing/JPopupMenu/6675802/bug6675802.java javax/swing/JMenuItem/6883341/bug6883341.java fails in osx
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u20
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-07-22
  • Updated: 2014-07-22
  • Resolved: 2014-07-22
Related Reports
Duplicate :  
Description
Testsuite name: Regression 
Test name(s):javax/swing/JPopupMenu/6675802/bug6675802.java ,javax/swing/JMenuItem/6883341/bug6883341.java
JDK tested: jdk1.8_20b21, jdk1.8b132,jdk1.8.0_20b17,jdk1.8.0_20b18
OS tested:osx
Is it a regression? Yes (Passes in jdku20b17 and starts fialing from jdk820b18)

Regression introduced in release/build: N/A 
Is it platform specific? Yes (Only fails mac)
java.lang.NullPointerException
        at sun.awt.EmbeddedFrame.getAppletIfAncestorOf(EmbeddedFrame.java:509)
        at javax.swing.PopupFactory.getPopup(PopupFactory.java:235)
        at com.apple.laf.ScreenPopupFactory._getHeavyWeightPopup(Native Method)
        at com.apple.laf.ScreenPopupFactory.getPopup(ScreenPopupFactory.java:74)
        at javax.swing.plaf.PopupMenuUI.getPopup(PopupMenuUI.java:61)
        at javax.swing.JPopupMenu.showPopup(JPopupMenu.java:837)
        at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:790)
        at javax.swing.JPopupMenu.show(JPopupMenu.java:965)
        at bug6675802.main(bug6675802.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)
Comments
RULE javax/swing/JMenuItem/6883341/bug6883341.java Exception java.lang.NullPointerException RULE javax/swing/JMenuItem/6883341/bug6883341.java Exception java.lang.reflect.InvocationTargetException RULE javax/swing/JPopupMenu/6675802/bug6675802.java Exception java.lang.NullPointerException
22-07-2014

Passes with jdk8u20b17 and jdkb132
22-07-2014