-
Notifications
You must be signed in to change notification settings - Fork 79
Running into problems when pickling Map and HashMap #63
Comments
Most likely due to the recurring problem with anonymous classes / traits and their current unsatisfactory fix (https://github.com/scala/pickling/blob/2.10.x/core/src/main/scala/pickling/Compat.scala). This is currently under investigation to find a more suitable solution. |
Yeah a fix would be very nice. because that makes it quite hard to work with nested data. Is there a workaround? |
When i do not import Map at all I run into this compile time error:
|
this does not work either:
returns
the values in the tuple are both null instead of 2 & 3 |
I was able to reproduce this problem using Pickling 0.10.0. |
Looks like this issue is due to the fact that specialized classes are not
|
Just some quick notes:
|
steps (0.10.0)
problem (0.10.0)
original report
My data structure is stored as a Map and when I try to pickle it I run into some weird issues.
When pickling a immutable.HashMap using the following example code.
as output I get
If I use instead the following snippet of code
I also end up with
only when I don't explicitly import Map do I end up with the correct output.
The text was updated successfully, but these errors were encountered: