[JAVA-3769] Allow multiple POJO codec providers Created: 19/Jun/20 Updated: 28/Oct/23 Resolved: 09/Oct/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Sheila Doyle | Assignee: | Brian DeLeonardis (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Case: | (copied to CRM) |
| Description |
|
Updated Description Enhance the PojoCodeProvider such that multiple instance can be added to the same registry and POJO codecs can be looked up between the providers. Original Description Using multiple codec providers sometimes causes a problem with a failure to find the 'log_entry' discriminator. It appears that loading the same set of providers does not cause a failure if loaded in a different order. e.g the following code causes a failure
However replacing the line to load the codeC provider with :
or this
does not cause a failure. So it appears that the issue is related to : 1. Allowing more than 1 provider. Please advise. Best regards, Sheila |
| Comments |
| Comment by Githook User [ 09/Oct/20 ] |
|
Author: {'name': 'Brian DeLeonardis', 'email': 'bdeleonardis1@gmail.com', 'username': 'bdeleonardis1'}Message: Fix discriminator lookup bug for multiple PojoCodecProviders
|
| Comment by Ross Lawley [ 30/Jun/20 ] |
|
I think there is some work that could be done to improve the discriminator lookup / or the error messaging for this scenario. Until then, the work around is to use a single PojoCodecProvider for any Pojo classes. |
| Comment by Sheila Doyle [ 24/Jun/20 ] |
|
jeff.yemin I initially intended this to be a Java ticket, but please let me know if it should be moved back to a HELP ticket. Requested information from customer. |
| Comment by Jeffrey Yemin [ 19/Jun/20 ] |
|
Hi sheila.doyle To progress this case, please provide the following information:
ross.lawley if you can think of anything else, please add.
|