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
{{ message }}
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
[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.
The text was updated successfully, but these errors were encountered:
This is actually a warning about "sharing". registerPicklee is used to determine if we have a cycle in the pickle-object-graph. It actually has nothing to do with runtime pickler generation (or genPickler).
It's most liekly due to some stale code in sourcegen.scala or elsewhere.
The above code snippet produces this beauty:
Why are you relying on
registerPicklee
? Why notpicklers.genPickler
? Isn't that part ofrefRegistry
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
.The text was updated successfully, but these errors were encountered: