Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IdDict with array keys is corrupted by serizalization/deserialization #33466

Closed
DrChainsaw opened this issue Oct 3, 2019 · 0 comments
Closed
Assignees

Comments

@DrChainsaw
Copy link

It does not 'recognize' its own keys after being deserialized:

julia> using Serialization

julia> d = IdDict([1] => 2, [3] => 4)
IdDict{Array{Int64,1},Int64} with 2 entries:
  [1] => 2
  [3] => 4

julia> serialize("d.jls", d)

julia> ds = deserialize("d.jls")
IdDict{Array{Int64,1},Int64} with 2 entries:
  [1] => 2
  [3] => 4

julia> [k in keys(ds) for k in keys(ds)]
2-element Array{Bool,1}:
 false
 false

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
@JeffBezanson JeffBezanson self-assigned this Oct 3, 2019
JeffBezanson added a commit that referenced this issue Oct 4, 2019
Can still read old data, but new files will not be readable by
older versions.
@Keno Keno closed this as completed in 0aa59a0 Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants