You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2023/03/09 20:15:00 UTC

[jira] [Closed] (MNG-7728) Fix mutable api in PluginContainer

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

Guillaume Nodet closed MNG-7728.
--------------------------------
    Resolution: Fixed

> Fix mutable api in PluginContainer
> ----------------------------------
>
>                 Key: MNG-7728
>                 URL: https://issues.apache.org/jira/browse/MNG-7728
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-4
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.0.0-alpha-5
>
>
> The {{PluginContainer}} from the v4 api uses the same additional code block than the v3 api and thus offers a {{getPluginsAsMap()}} method along with a {{flushPluginMap()}} which makes the whole class non immutable.
> Given additional constructor arguments are not supported by the generator, using a lazy computed field should be enough to ensure that the content of the class never changes, even though the field itself can change, the value returned by {{getPluginsAsMap()}} cannot.



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