You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/12/18 14:02:00 UTC

[jira] [Closed] (MNG-7636) Partially revert MNG-5868 to restore backward compatibility (see MNG-7316)

     [ https://issues.apache.org/jira/browse/MNG-7636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-7636.
-------------------------------
    Resolution: Fixed

Fixed with [a1d43778efe577f58f74ee84949f680fe017a14d|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=a1d43778efe577f58f74ee84949f680fe017a14d] for {{maven-3.9.x}} branch, with [8c65fcf01732685f7d085d58df5f8d56b0c8a303|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=8c65fcf01732685f7d085d58df5f8d56b0c8a303] for {{maven-3.8.x}} branch.

> Partially revert MNG-5868 to restore backward compatibility (see MNG-7316)
> --------------------------------------------------------------------------
>
>                 Key: MNG-7636
>                 URL: https://issues.apache.org/jira/browse/MNG-7636
>             Project: Maven
>          Issue Type: Task
>    Affects Versions: 3.8.6
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 3.9.0, 3.8.7
>
>
> Due to the lack of documentation it was never clear whether {{org.apache.maven.project.MavenProject.getAttachedArtifacts()}} is mutable or not. Components used or abused this collection. The change was done in 3.8.x in a patch release which was unfortunately and make things obvious. To better address the breaking situation this change will be partially reverted in 3.8.x and 3.9.0, but documented in 4.0.0 that the collection is read-only. A proper solution to remove attached is desired in the future.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)