You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[info] running (fork) Test
[error] WARNING:Using incubator modules: jdk.incubator.foreign
[error] Exception in thread "main" java.lang.ClassCastException:Cannot cast [Ljava.lang.Object; to jdk.incubator.foreign.Addressable
[error] at java.base/java.lang.Class.cast(Class.java:3921)
[error] at Test$.main(Test.scala:15)
[error] at Test.main(Test.scala)
[error] Nonzero exit code returned from runner: 1
[error] (Compile/ run) Nonzero exit code returned from runner: 1
Expectation
The code should run just fine, and print len = 5. It works in Scala 2.
The text was updated successfully, but these errors were encountered:
Compiler version
Tried 3.1.3 and 3.2.0-RC1
Minimized code
Since this example uses the foreign incubator API,
javaOptions
andjavacOptions
must contain--add-modules=jdk.incubator.foreign
Output
Expectation
The code should run just fine, and print
len = 5
. It works in Scala 2.The text was updated successfully, but these errors were encountered: