Aled Sage created BROOKLYN-482:
----------------------------------

             Summary: 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


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)

Reply via email to