[
https://issues.apache.org/jira/browse/BROOKLYN-482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aled Sage resolved BROOKLYN-482.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.12.0
> Config Key default value (in yaml) of type List is mutable
> ----------------------------------------------------------
>
> Key: BROOKLYN-482
> URL: https://issues.apache.org/jira/browse/BROOKLYN-482
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Aled Sage
> Priority: Minor
> Fix For: 0.12.0
>
>
> In version 0.11.0-rc2...
> As described in https://github.com/apache/brooklyn-docs/pull/172, it's
> important that config key default values are immutable.
> However, in a yaml catalog item or blueprint if you declare a config key of
> type {{java.util.List}} (or Set, Collection or Map) with {{[]}} then that is
> mutable.
> For example:
> {noformat}
> brooklyn.catalog:
> itemType: entity
> items:
> - id: entity-with-keys
> item:
> type: server
> brooklyn.parameters:
> - name: my.list.key
> type: java.util.List
> default: ["myDefaultVal"]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)