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

[macos] javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java fails

XMLWordPrintable

    • b13
    • x86_64, aarch64
    • os_x
    • Verified

      The following test failed in the JDK18 CI:

      javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/194)----------
      command: main NSTexturedJFrame
      reason: User specified action: run main NSTexturedJFrame
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 3.797
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(47/3486)----------
      java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1371)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1346)
      at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
      at NSTexturedJFrame.createUI(NSTexturedJFrame.java:109)
      at NSTexturedJFrame.showFrame(NSTexturedJFrame.java:102)
      at NSTexturedJFrame.main(NSTexturedJFrame.java:67)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.NullPointerException: Cannot invoke "sun.lwawt.macosx.CFLayer.setOpaque(boolean)" because "this.windowLayer" is null
      at java.desktop/sun.lwawt.macosx.CPlatformView.setWindowLayerOpaque(CPlatformView.java:138)
      at java.desktop/sun.lwawt.macosx.CPlatformWindow.setOpaque(CPlatformWindow.java:931)
      at java.desktop/sun.lwawt.LWWindowPeer.updateOpaque(LWWindowPeer.java:508)
      at java.desktop/sun.lwawt.LWWindowPeer.setTextured(LWWindowPeer.java:524)
      at java.desktop/sun.lwawt.macosx.CPlatformWindow.getInitialStyleBits(CPlatformWindow.java:533)
      at java.desktop/sun.lwawt.macosx.CPlatformWindow.initialize(CPlatformWindow.java:333)
      at java.desktop/sun.lwawt.LWWindowPeer.<init>(LWWindowPeer.java:198)
      at java.desktop/sun.lwawt.LWToolkit.createDelegatedPeer(LWToolkit.java:213)
      at java.desktop/sun.lwawt.LWToolkit.createFrame(LWToolkit.java:242)
      at java.desktop/java.awt.Frame.addNotify(Frame.java:485)
      at java.desktop/java.awt.Window.show(Window.java:1053)
      at java.desktop/java.awt.Component.show(Component.java:1728)
      at java.desktop/java.awt.Component.setVisible(Component.java:1675)
      at java.desktop/java.awt.Window.setVisible(Window.java:1036)
      at NSTexturedJFrame.lambda$createUI$0(NSTexturedJFrame.java:121)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

      JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
      ----------rerun:(42/7386)*----------

            avu Alexey Ushakov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: