Test javax/swing/plaf/metal/MetalUtils/bug6190373.java failed: ClassCastException: class java.lang.Character cannot be cast to class javax.swing.Painter

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: client-libs

      ----------System.out:(4/216)----------
      LookAndFeel: javax.swing.plaf.metal.MetalLookAndFeel
      LookAndFeel: javax.swing.plaf.metal.MetalLookAndFeel
      LookAndFeel: javax.swing.plaf.nimbus.NimbusLookAndFeel
      LookAndFeel: javax.swing.plaf.nimbus.NimbusLookAndFeel
      ----------System.err:(30/2402)----------
      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at bug6190373.test(bug6190373.java:78)
      at bug6190373.lambda$main$0(bug6190373.java:55)
      at java.base/java.lang.Thread.run(Thread.java:1516)
      Caused by: java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1303)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1278)
      at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1464)
      at bug6190373.test(bug6190373.java:75)
      ... 2 more
      Caused by: java.lang.ClassCastException: class java.lang.Character cannot be cast to class javax.swing.Painter (java.lang.Character is in module java.base of loader 'bootstrap'; javax.swing.Painter is in module java.desktop of loader 'bootstrap')
      at java.desktop/javax.swing.plaf.nimbus.NimbusStyle.getBackgroundPainter(NimbusStyle.java:721)
      at java.desktop/javax.swing.plaf.nimbus.SynthPainterImpl.paintBackground(SynthPainterImpl.java:109)
      at java.desktop/javax.swing.plaf.nimbus.SynthPainterImpl.paintButtonBackground(SynthPainterImpl.java:331)
      at java.desktop/javax.swing.plaf.synth.SynthButtonUI.paintBackground(SynthButtonUI.java:305)
      at java.desktop/javax.swing.plaf.synth.SynthButtonUI.update(SynthButtonUI.java:262)
      at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:848)
      at java.desktop/javax.swing.JComponent.paint(JComponent.java:1124)
      at bug6190373.slam(bug6190373.java:92)
      at bug6190373.lambda$test$1(bug6190373.java:75)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:714)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
      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)
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

            Assignee:
            Philip Race
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: