Skip to content

Respect 'merge' attribute of <map> and <list> elements in conjunction with nested property paths [SPR-9552] #14186

@spring-projects-issues

Description

@spring-projects-issues

Matt Wuertz opened SPR-9552 and commented

I work on the Kuali Rice project. When I try to use a map merge with nested properties, it doesn't function correctly. For example:

<bean id="testNestedMap" class="SomeClass">
  <property name="reference1">
    <bean class="SomeClass">
      <property name="map1">
        <map>
          <entry key="keyQ" value="Q"/>
        </map>
      </property>
    </bean>
  </property>
</bean>

<bean parent="testNestedMap">
  <property name="reference1.map1">
    <map merge="true">
      <entry key="keyC" value="C"/>
    </map>
  </property>
</bean>

My hope is to get X and C in the child map. When I do this, however, all I get is C. I have asked for guidance on the forums but did have any responses, which leads me to believe that this is a bug. Please let me know if there is any additional information I can provide.

I placed the priority as Major because I don't have a workaround for this.


Affects: 3.1 GA

Issue Links:

0 votes, 8 watchers

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions