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

Guillaume Nodet updated MNG-7728:
---------------------------------
    Fix Version/s: 4.0.0

> 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, 4.0.0
>
>
> 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)

Reply via email to