8000 Correct behaviour of Copy-Constructors · Issue #1195 · kadai-io/kadai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Correct behaviour of Copy-Constructors #1195
Closed
@bruderj15

Description

@bruderj15

Follow-Up to #893

Description

Copy-Constructors are supposed to create a copy of a given value - by value, not reference.
This is done by constructing a new value for the constructors type by copying all fields from the old value to the one to be constructed.

Throughout the code-base this is currently flawed:

  • Some Copy-Constructors miss required fields
  • Some Copy-Constructors copy by reference, not value

Definition of Done

  • Checked for all occurences of Copy-Constructors
  • Adjusted all Copy-Constructors such that all required fields (no persistence-ids e.g.) are copied by value

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0