Skip to content

Typemap yields Upgrade(type) objects on load #630

Closed
@cstjean

Description

@cstjean

Thank you for answering #627. So far it works well, however I found an issue:

using JLD2

struct Foo
    x::Int
end

jldsave("test.jld2"; type=Foo)

load("test.jld2", "type"; typemap=Dict("Main.Foo"=>JLD2.Upgrade(Foo)))

This should reasonably yield Foo, but it yields Upgrade(Foo). To put it another way, if I'm deserializing a Dict(Foo=>4), it'll become Dict(Upgrade(Foo)=>4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions