[JAVA-2272] Some calls to CollectibleCodec.generateIdIfAbsentFromDocument expect the document to mutate. Created: 03/Aug/16  Updated: 19/Oct/16  Resolved: 12/Oct/16

Status: Closed
Project: Java Driver
Component/s: Codecs
Affects Version/s: 3.3.0
Fix Version/s: 3.4.0-rc1, 3.4.0

Type: Bug Priority: Minor - P4
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It should be possible to have an immutable document and generateIdIfAbsentFromDocument will return a new document instance.



 Comments   
Comment by Githook User [ 12/Oct/16 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Ensure use of generateIdIfAbsentFromDocument assigns the result

There is no guarantee that CollectibleCodec<TDocument> will be able to
mutate the TDocument instance.

JAVA-2272
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/07a52913817b50b751a54b295d20818a5e5c4b5c

Comment by Ross Lawley [ 11/Oct/16 ]

PR: https://github.com/rozza/mongo-java-driver/pull/169

Generated at Thu Feb 08 08:56:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.