Details
-
Bug
-
Resolution: Duplicate
-
Critical - P2
-
None
-
3.6.0
-
None
Description
It seems that the enum codec stop to work in 3.6.0
When I use the MongoStorageTest class usin mongo-java-driver 3.5.0
the test work fine (object is inserted)
When I change the driver to 3.6.0 I got a nullPointerException
java.lang.NullPointerException at org.bson.codecs.pojo.PojoCodecImpl.shouldSpecialize(PojoCodecImpl.java:337)
After trying to debug a little bit it appear that the enum BLABLA is considered having class java.lang.class when converted to TypeWithTypeParameters so the EnumPropertyCodecProvider return null instead of an instance of EnumCodec
Attachments
Issue Links
- duplicates
-
JAVA-2709 Pojo with method returning an Enum - NPE / "Can't find a codec for class"
-
- Closed
-