Skip to content

Property binding to Map that implements Iterable no longer works #34332

Closed
@fournm

Description

@fournm

Overview

The initial PR (#907) implemented the following ordering in AbstractNestablePropertyAccessor, supported by tests:

  • List
  • Map
  • Iterable

The version that was finally added in c20a2e4 implements the following ordering:

  • List
  • Iterable (replacing Set)
  • Map

This causes any Map that implements Iterable to fail binding in Spring 6.1+, where they functioned previously.

It seems less likely that iterables will implement Map in a broken fashion, as opposed to the other way around.

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions