This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
Warning when asking for implicit picklers/unpicklers #397
Open
Description
implicitly[Pickler[(Int, List[String])]]
The above code snippet produces this beauty:
[warn] /data/rw/code/scala/spores/spores-pickling/src/test/scala/scala/spores/run/pickling/PicklingBinary.scala:58: method lookupPicklee in package internal is deprecated: Use currentRuntime.refRegistry.pickle.registerPicklee instead
[warn] implicit val p = implicitly[Pickler[(Int, List[String])]]
[warn]
Why are you relying on registerPicklee
? Why not picklers.genPickler
? Isn't that part of refRegistry
and therefore it's related to the bookkeeping of circular references? Why do you need that for a simple pickler/unpickler of a tuple?
This only affects scala pickling v0.11.x
.