Open
Description
reproduction steps
Using the latest 2.12.12 release with graal native-image is throws error in runtime.
problem
The problem with the usage of MethodHandler in https://github.com/scala/scala/blob/2.12.x/src/library/scala/collection/immutable/VM.java#L24
parameters to used: --no-server --allow-incomplete-classpath --no-fallback --report-unsupported-elements-at-runtime --initialize-at-build-time=scala
Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.LambdaForm$MH/1405562130.invoke_MT(Object, Object)
at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:86)
at scala.collection.immutable.VM.releaseFence(VM.java:25)
at scala.collection.immutable.HashSet$HashSetBuilder.result(HashSet.scala:1283)
at scala.collection.immutable.Set$SetBuilderImpl.result(Set.scala:344)
at scala.collection.immutable.Set$SetBuilderImpl.result(Set.scala:329)
at scala.collection.generic.GenericCompanion.apply(GenericCompanion.scala:57)