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.ClassCastException: scala.collection.mutable.ArrayBuffer cannot be cast to scala.collection.immutable.List
java.lang.ClassCastException: scala.collection.mutable.ArrayBuffer cannot be cast to scala.collection.immutable.List
at org.msgpack.template.ImmutableListTemplate.write(ImmutableListTemplate.scala:32)
at org.msgpack.template.AbstractTemplate.write(AbstractTemplate.java:27)
at A_$$_Template_1493359522_0.write(A_$$_Template_1493359522_0.java)
at org.msgpack.template.AbstractTemplate.write(AbstractTemplate.java:27)
at org.msgpack.MessagePack.write(MessagePack.java:196)
at org.msgpack.ScalaMessagePackWrapper$class.write(ScalaMessagePack.scala:64)
at org.msgpack.ScalaMessagePack$.write(ScalaMessagePack.scala:43)
at Main$.delayedEndpoint$Main$1(Main.scala:13)
at Main$delayedInit$body.apply(Main.scala:10)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at Main$.main(Main.scala:10)
at Main.main(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
The text was updated successfully, but these errors were encountered:
scala> import org.msgpack.ScalaMessagePack
import org.msgpack.ScalaMessagePack
scala> val mp = new ScalaMessagePack()
mp: org.msgpack.ScalaMessagePack = org.msgpack.ScalaMessagePack@2054a05e
scala> mp.write(collection.mutable.ArrayBuffer(1,2,3))
java.lang.ClassCastException: scala.collection.mutable.ArrayBuffer cannot be cast to scala.collection.immutable.List at
org.msgpack.template.ImmutableListTemplate.write(ImmutableListTemplate.scala:32) at
org.msgpack.template.AbstractTemplate.write(AbstractTemplate.java:27) at
org.msgpack.MessagePack.write(MessagePack.java:196)
The text was updated successfully, but these errors were encountered: