OPENDJ-390 (CR-1319) ConcurrentModificationException during backup all
Entry.java:
duplicate() method is used to clone an Entry to avoid modifying it, but while cloning, it actually modifies the current object. Doh! The current object is not modified anymore during the cloning.
| | |
| | | deepCopy(operationalAttributes, operationalAttrsCopy, false, |
| | | false, false, true, false); |
| | | |
| | | // Put back all the suppressed attributes where they belonged to. |
| | | // Then hopefully processVirtualAttributes() will rebuild the suppressed |
| | | // attribute list correctly. |
| | | for (AttributeType t : suppressedAttributes.keySet()) |
| | | { |
| | | List<Attribute> attrList = suppressedAttributes.get(t); |
| | | if (t.isOperational()) |
| | | { |
| | | operationalAttributes.put(t, attrList); |
| | | operationalAttrsCopy.put(t, attrList); |
| | | } |
| | | else |
| | | { |
| | | userAttributes.put(t, attrList); |
| | | userAttrsCopy.put(t, attrList); |
| | | } |
| | | } |
| | | |