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
[error] (run-main-0) java.lang.NoClassDefFoundError: java/util/UUID$
[error] java.lang.NoClassDefFoundError: java/util/UUID$
[error] at dev.insideyou.delete3me.Main$package$.UUID(Main.scala:4)
[error] at dev.insideyou.delete3me.Main$.<clinit>(Main.scala:9)
[error] at dev.insideyou.delete3me.Main.main(Main.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:498)
[error] Causedby: java.lang.ClassNotFoundException: java.util.UUID$
[error] at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
Expectation
I either expect it NOT to compile in the first place or even better actually work.
The text was updated successfully, but these errors were encountered:
I wonder if this is related to scala/bug#12396, where I got a NoClassDefFoundError calling a method on a Java library from Scala 3 - reported there before realising that it seems that's only for Scala 2 bugs.
I guess this "fixes" it, but any chance this could be improved in the future? It would be cool if all the static members were exported into a Scala UUID object as in:
exportjava.util.UUID
could be equivalent to:
typeUUID= java.util.UUIDobjectUUID:inlinedefrandomUUID():UUID=
java.util.UUID.randomUUID()
// followed by other members
Compiler version
3.0.0-RC3 (also fails in the earlier versions)
Minimized code
Output
Expectation
I either expect it NOT to compile in the first place or even better actually work.
The text was updated successfully, but these errors were encountered: