Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039081

[TEST_BUG] Test java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java fails

    Details

    • Subcomponent:
    • Introduced In Build:
      b07
    • Introduced In Version:
    • Resolved In Build:
      b133
    • CPU:
      generic
    • OS:
      generic

      Description

      Testsuite: Regression
      Test name: java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java
      JDK tested: JDK 8u20 b07
      OS tested: Linux 32-bit, Windows 7 64-bit

      Test fails since 8u20 b07 after it was integrated in fix to JDK-8007220.
      It seems that the bug is in the test.

      LOG Oracle Linux 32-bit:

      java.lang.RuntimeException: Failed, reference to popup not collected
      at PopupMenuLeakTest.assertCollected(PopupMenuLeakTest.java:86)
      at PopupMenuLeakTest.main(PopupMenuLeakTest.java:54)
      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:744)


      LOG Windows 7 x64:

      java.lang.reflect.InvocationTargetException
              at java.awt.EventQueue.invokeAndWait(EventQueue.java:1300)
              at java.awt.EventQueue.invokeAndWait(EventQueue.java:1275)
              at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
              at PopupMenuLeakTest.main(PopupMenuLeakTest.java:50)
              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:744)
      Caused by: java.lang.IllegalArgumentException: illegal popup menu container class
              at sun.awt.windows.WPopupMenuPeer.<init>(WPopupMenuPeer.java:65)
              at sun.awt.windows.WToolkit.createPopupMenu(WToolkit.java:461)
              at java.awt.PopupMenu.addNotify(PopupMenu.java:124)
              at PopupMenuLeakTest.addNotifyPopup(PopupMenuLeakTest.java:63)
              at PopupMenuLeakTest$$Lambda$2/193086262.run(Unknown Source)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
              at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
              at java.awt.EventQueue.access$400(EventQueue.java:97)
              at java.awt.EventQueue$3.run(EventQueue.java:697)
              at java.awt.EventQueue$3.run(EventQueue.java:691)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arapte Ambarish Rapte
                Reporter:
                kshefov Konstantin Shefov
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: