-
Type:
New Feature
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Codecs
-
None
-
None
-
Java Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Java class which has a field of type “Object” (since the field can be of various types), when we try writing to Mongo the customer get an exception “Can't find a codec for class java.lang.Object”.
To avoid this exception they created a custom Codec for Object (Codec<Object>) and write the encode/decode methods manually (attached).
The ask is to add it to the default codec registry so they will not have to maintain it.