-
Bug
-
Resolution: Fixed
-
Low
-
None
We have an optimisation in our hibernate-backed Directory and Application code where instead of replacing the attributes, we update the existing collection (using retainAll). This assumes that the collection field is mutable. Since we can't just create a immutable copy of what's passed in setAttributes, we need to ensure that all usages of setAttributes are passing in an immutable copy.
[CWD-2189] Hibernate Backed Classes should not have immutable collections passed in
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1510659 ] | New: JAC Bug Workflow v3 [ 3365214 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1390662 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1510659 ] |
Workflow | Original: Crowd Development Workflow v2 [ 275960 ] | New: Simplified Crowd Development Workflow v2 [ 1390662 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Technical Review [ 10028 ] | New: Resolved [ 5 ] |
Worklog Id | Original: 94152 [ 94152 ] | |
Time Spent | Original: 8h [ 28800 ] | New: 8.6h [ 30960 ] |
Worklog Id | Original: 94121 [ 94121 ] | |
Remaining Estimate | Original: 2h [ 7200 ] | New: 0h [ 0 ] |
Time Spent | New: 8h [ 28800 ] |
Status | Original: In Progress [ 3 ] | New: Technical Review [ 10028 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: James Wong [ 4c7409f97ecf ] |
Description | Original: We have an optimisation in our hibernate-backed Directory and Application code where instead of replacing the attributes, we update the existing collection (using {{retainAll}}). This assumes that the collection field is mutable. | New: We have an optimisation in our hibernate-backed Directory and Application code where instead of replacing the attributes, we update the existing collection (using {{retainAll}}). This assumes that the collection field is mutable. Since we can't just create a immutable copy of what's passed in {{setAttributes}}, we need to ensure that all usages of {{setAttributes}} are passing in an immutable copy. |
Summary | Original: Hibernate Backed Classes should not immutable collections passed in | New: Hibernate Backed Classes should not have immutable collections passed in |