Skip to content

It is not possible to override the default java.util.Map handler #31

@whilo

Description

@whilo

In Clojure code:

(get
 (TransitFactory/writeHandlerMap {java.util.Map "foo bar"})
 java.util.Map)

yields the default map handler unchanged instead of an exception (which happens for java.util.List). This behavior worked with transit-clj 0.8.285. I have been using this for https://github.com/replikativ/incognito/ to serialize all unknown record types as special maps including tag information. Unfortunately the default-handler does not cover this case, because it is only triggered if the thing is unknown, while records are treated as maps by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions