pickling icon indicating copy to clipboard operation
pickling copied to clipboard

Fast, customizable, boilerplate-free pickling support for Scala

Results 100 pickling issues
Sort by recently updated
recently updated
newest added

I've created [test that illustrates issue](https://github.com/mklew/scala-pickling-bug/blob/master/src/test/scala/PicklingBugTest.scala). In short ``` val clazz: Class[Int] = classOf[Int] val pickle = clazz.pickle val deserializedJsonPickle: JSONPickle = JSONPickle(pickle.value) val deserializedClass: Class[Int] = deserializedJsonPickle.unpickle[Class[Int]] // fails...

bug
runtime-issue
unpickle-asymmetry

Example: ``` scala import scala.pickling._ import scala.pickling.Defaults._ import scala.pickling.json._ import scala.pickling.static._ import scala.collection.LinearSeq sealed trait C case class D(x: Int, y: String) { var l: LinearSeq[C] = LinearSeq(E) object E...

enhancement

Every example I have read starts with pickling some arbitrary object, then using the value returned by pickling method to unpickle that object. I don’t understand how to make my...

enhancement

Hi, I'm trying to pickle a hashmap to a file. I used [this](https://github.com/scala/pickling/issues/43#issuecomment-97692337) as a starting point and came up with the following code: ``` scala def writeAccounts(accounts: HashMap[String, Account])...

bug

It seems that the reflection that is needed for unpickling to AnyRef will create a new instance of the case object, which gives us two singletons of the same type:...

bug

I like the idea of pickling library very much, but the problem with documentation is not lack of it, but confusing examples and structure. I believe usage example should look...

documentation

## steps (0.10.0) ``` scala scala-pickling> console [info] Starting scala interpreter... [info] Welcome to Scala version 2.11.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51). Type in expressions to have them...

bug
runtime-issue

I'm currently getting a runtime `NotImplementedError` from `PicklerUnpicklerNotFound`, and I'd like to know what the general strategies should be for working around it. As this is the most common bug...

question

Hey guys, i have following problem: i am trying to pickle this case class ``` scala trait GuiMessage case class SkillMatrix(operators: Seq[String], skills: Seq[String], enabledSkills: Seq[(String,String)]) extends GuiMessage ``` The...

question

Jackson allows to use custom naming strategies. It implements the CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES strategy as a builtin (http://jackson.codehaus.org/1.9.9/javadoc/org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html). Is it possible to apply such custom strategies with pickling ?

enhancement