[JAVA-5142] Remove deprecated codecs Created: 08/Sep/23  Updated: 05/Dec/23  Resolved: 15/Nov/23

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Epic Link: Remove deprecated APIs for 5.0 release
Quarter: FY24Q4
Backwards Compatibility: Minor Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?

We should say that if you want a generic codec for Map, use the MapCodecProvider, and ensure that other codecs needed for the values inside the Map are included in the registry as well.

2. Would you like the user to see examples of the syntax and/or executable code and its output? No
3. Which versions of the driver/connector does this apply to? 5.0.0


 Description   

            org.bson.codecs 
                IterableCodec
                MapCodec



 Comments   
Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Make deprecated IterableCodec package-private

It's still used by IterableCodecProvider, so it can't be removed entirely.
(Though IterableCodecProvider is almost entirely supplanted by CollectionCodecProvider,
it was not itself deprecated because it provides a codec for any Iterable, while
CollectionCodecProvider only provides one for any Collection, which is not quite the
same thing).

JAVA-5142
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/75c00dac7c2bb959903db8df026ccaecd6f819b7

Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Rename MapCodecV2 to MapCodec

JAVA-5142
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/482190ae9039aedf74e3b150b56aa6e39ef335b5

Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Removed deprecated MapCodec

JAVA-5142
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/82f433c808fec37d3691ae798140736e39377423

Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Re-enable deprecation warnings

JAVA-5142
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/25d51a2d328008ac8ccde78a8010aa6a5b5be169

Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Re-enable deprecation warnings

JAVA-5142
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b5c8b025e0da26357397f387ae593ef837a84f71

Generated at Thu Feb 08 09:03:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.