[JAVA-2979] PojoCodec requires codec for BsonIgnored synthesized properties Created: 18/Sep/18 Updated: 28/Oct/23 Resolved: 13/Dec/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | None |
| Fix Version/s: | 3.10.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
If a property is synthetic (e.g. has no backing field) and is annotated with @BsonIgnore then it shouldn't require a codec for the property.
With the above example there is no need for a Codec<Object>. |
| Comments |
| Comment by Githook User [ 14/Jan/19 ] |
|
Author: {'username': 'rozza', 'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley'}Message: Ensure synthetic ignored properties don't require a Codec
|
| Comment by Ian Whalen (Inactive) [ 13/Dec/18 ] |
|
ross.lawley should this have a fixversion? |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}Message: Ensure synthetic ignored properties don't require a Codec
|