scala / pickling

Fast, customizable, boilerplate-free pickling support for Scala
lampwww.epfl.ch/~hmiller/pickling
BSD 3-Clause "New" or "Revised" License
831 stars 79 forks source link

Pickle crashes trying to unpickle scala.Enumeration #380

Open alexeykudinkin opened 8 years ago

alexeykudinkin commented 8 years ago

Spewing:

java.lang.RuntimeException: error: cannot find class or module with type name 'scala.Enumeration.Val'
full type string: 'scala.Enumeration.Val'
alexeykudinkin commented 8 years ago

Branch 0.11.*

jvican commented 8 years ago

True, scala-pickling doesn't have support for enumerations. Why don't you express the same logic with sealed traits and case objects? At some point, we'd like to support it though.

schickling commented 8 years ago

I'm facing the same problem where I cannot use sealed traits :(