-
Notifications
You must be signed in to change notification settings - Fork 21
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
It is not possible to override the default java.util.Map handler #31
Comments
Could you use the clojure.lang.IRecord marker type to catch these? |
I get a |
The full stacktrace is:
|
Looking at the commit log the MapHandler has changed at some point, caching was also introduced in the meantime. I can try to track down why it is shadowed, if this is helpful. |
In Clojure code:
yields the default map handler unchanged instead of an exception (which happens for
java.util.List
). This behavior worked withtransit-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.The text was updated successfully, but these errors were encountered: