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

ClassModel needs to be immutable

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12.0
    • Affects Version/s: None
    • Component/s: POJO
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: