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

Fix anonymous method serialization for Julia v1.10 #125

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

topolarity
Copy link
Contributor

This appears to be enough to resolve #124:

julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
...
julia> using BSON

julia> f = x -> x+1
       #1 (generic function with 1 method)
#1 (generic function with 1 method)

julia> f2 = BSON.roundtrip(f) # ok 
#1 (generic function with 1 method)

fwiw, I have not done a careful review of the serialization logic - this is just an effort to patch the conspicuous regressions

Previously BSON would skip these entirely causing mis-ordered
`setfield!` calls when loading the struct.
@DhairyaLGandhi DhairyaLGandhi merged commit c2bd76d into JuliaIO:master Jan 19, 2024
7 of 8 checks passed
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

Successfully merging this pull request may close these issues.

BSON fails to deserialize in 1.10
2 participants