graal icon indicating copy to clipboard operation
graal copied to clipboard

native-image-configure tool is throwing a ClassCastException on latest Oracle EA Build

Open thejudge156 opened this issue 6 months ago • 5 comments

Describe the issue While trying to run the configure tool with the latest EA build, a ClassCastException is thrown if any reachability metadata input is in the command.

Steps to reproduce the issue

  1. Try running the configure tool with the attached metadata

Describe GraalVM and your environment:

  • GraalVM version: jdk-24.0.0-ea.06
  • JDK major version: Java 24
  • OS: Windows 11
  • Architecture: AMD64

More details File attached here: reachability-metadata.json

    java.lang.ClassCastException: class org.graalvm.collections.EconomicMapImpl cannot be cast to class java.util.List (org.graalvm.collections.EconomicMapImpl is in module org.graalvm.collections of loader 'app'; java.util.List is in module java.base of loader 'bootstrap')
        at org.graalvm.nativeimage.configure/com.oracle.svm.configure.trace.TraceProcessor.process(TraceProcessor.java:59)
        at org.graalvm.nativeimage.configure/com.oracle.svm.configure.command.ConfigurationGenerateCommand.generate(ConfigurationGenerateCommand.java:297)
        at org.graalvm.nativeimage.configure/com.oracle.svm.configure.command.ConfigurationGenerateCommand.apply(ConfigurationGenerateCommand.java:60)
        at org.graalvm.nativeimage.configure/com.oracle.svm.configure.ConfigurationTool.main(ConfigurationTool.java:84)
        at org.graalvm.nativeimage.enterprise.configure/com.oracle.svm.enterprise.configure.ConfigurationEnterpriseTool.main(ConfigurationEnterpriseTool.java:24)

thejudge156 avatar Aug 04 '24 17:08 thejudge156