Skip to content

Deep copy mapFields and listFields for new ZNRecord(ZNRecord record, String id) #549

@huizhilu

Description

@huizhilu

new ZNRecord(ZNRecord record, String id) seems it wants to do a deep copy. But mapFields and listFields are not deep copied.

mapFields.putAll(record.getMapFields());
listFields.putAll(record.getListFields());

If deep copying is expected, we would like to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions