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

applications/ctw/modules/java_desktop.java fails with ClassCastException

XMLWordPrintable

      This test failed while running on libgraal. The crash appears to happen in the harness:

      java.lang.ExceptionInInitializerError
              at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
              at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
              at sun.hotspot.tools.ctw.Compiler.compileClass(Compiler.java:74)
              at sun.hotspot.tools.ctw.PathHandler.processClass(PathHandler.java:229)
              at sun.hotspot.tools.ctw.PathHandler.lambda$process$0(PathHandler.java:198)
              at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
              at java.base/java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:174)
              at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
              at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
              at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
              at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
              at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
              at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
              at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
              at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
              at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
              at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
              at sun.hotspot.tools.ctw.PathHandler.process(PathHandler.java:198)
              at sun.hotspot.tools.ctw.CompileTheWorld.lambda$main$0(CompileTheWorld.java:86)
              at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
              at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
              at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
              at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
              at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
              at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
              at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
              at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
              at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
              at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
              at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
              at sun.hotspot.tools.ctw.CompileTheWorld.main(CompileTheWorld.java:84)
      Caused by: java.lang.ClassCastException: class sun.awt.HeadlessToolkit cannot be cast to class sun.awt.UNIXToolkit (sun.awt.HeadlessToolkit and sun.awt.UNIXToolkit are in module java.desktop of loader 'bootstrap')
              at java.desktop/com.sun.java.swing.plaf.gtk.GTKStyle.<clinit>(GTKStyle.java:1199)
              ... 33 more

            serb Sergey Bylokhov
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: