Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3456

ClassModel needs to be immutable

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.12.0
    • None
    • POJO
    • None

    Description

      In JAVA-3364 we find that the collection fields in `ClassModel` can be modified after construction. The getters for these collection fields do not provide defensive copies of the collections, which is required for `ClassModel` to be immutable.

      Attachments

        Activity

          People

            john.stewart@mongodb.com John Stewart (Inactive)
            john.stewart@mongodb.com John Stewart (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: