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
java.lang.ExceptionInInitializerError
at Test.main(volatile-intersection.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at scala.tools.nsc.ObjectRunner$$$$anonfun$$run$$1.apply(ObjectRunner.scala:75)
at scala.tools.nsc.ObjectRunner$$.withContextClassLoader(ObjectRunner.scala:49)
at scala.tools.nsc.ObjectRunner$$.run(ObjectRunner.scala:74)
at scala.tools.nsc.MainGenericRunner$$.main(MainGenericRunner.scala:154)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
Causedby: java.lang.ClassCastException:Test$$C$$$$anon$$1
at Test$$D.<init>(volatile-intersection.scala:14)
at Test$$.<init>(volatile-intersection.scala:17)
at Test$$.<clinit>(volatile-intersection.scala)
... 10 more
The text was updated successfully, but these errors were encountered:
{{{code}}}
java.lang.ClassCastException: Test$C$$anon$1 cannot be cast to Test$D$E
at Test$D.(:21)
at Test$.(:24)
at Test$.()
at .(:9)
at .()
at .(:11)
at .()
Essentially the same problem volatility was introduced to deal with, but in this case there are never any abstract types involved:
Yielding:
The text was updated successfully, but these errors were encountered: