[JAVA-2714] EnumCodec stop to work Created: 20/Dec/17 Updated: 20/Dec/17 Resolved: 20/Dec/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | 3.6.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | f-renout | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| 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 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 |
| Comments |
| Comment by Jeffrey Yemin [ 20/Dec/17 ] |
|
Glad to hear it. |
| Comment by f-renout [ 20/Dec/17 ] |
|
I tried and the SNAPSHOT version fixes the issue |
| Comment by Jeffrey Yemin [ 20/Dec/17 ] |
|
This could be a duplicate of |