Manifest copy constructor does not deeply copy individual section Attributes

Philipp Kunz philipp.kunz at paratix.ch
Sat Jan 19 18:32:25 UTC 2019


Hi,

Creating a new manifest as a copy from an existing one using the copy
constructor assigns the new manifest individual sections entries map
the same values which are references to attributes as the original
rather than copying them as well deeply resulting in two manifests
pointing to the same attributes instances modifications to which always
affect both manifests. See test and proposed fix in the attached patch.

Regards,
Philipp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: manifestcopyconstructor.patch
Type: text/x-patch
Size: 3039 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20190119/a7c04fc8/manifestcopyconstructor.patch>


More information about the core-libs-dev mailing list