Skip to content

DataBinder direct field access ignores auto-grow collection limitΒ #36861

Closed

Description

@mkurz

DataBinder applies its autoGrowCollectionLimit to bean-property binding, but direct-field binding does not apply the same limit to the underlying DirectFieldAccessor.

With the default limit of 256, binding items[255].name succeeds for both bean-property binding and direct-field binding, as expected.

Binding items[256].name is rejected for bean-property binding, but succeeds after calling initDirectFieldAccess().

Reproducer:
https://github.com/mkurz/spring-direct-field-autogrow-repro

Expected behavior:
Direct-field binding should reject items[256].name the same way bean-property binding does.

Actual behavior:
Direct-field binding grows the collection past the configured limit.

Activity

  1. jhoeller commented on Jun 2, 2026

    @jhoeller
    Contributor

    Superseded by PR #36862.

  2. added a commit that references this issue on Jun 2, 2026
    481a574
  3. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    status: supersededAn issue that has been superseded by another
    and removed on Sep 7, 2026
  4. added a commit that references this issue on Nov 3, 2026
    30bdbb1
  5. removed
    status: backportedAn issue that has been backported to maintenance branches
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anothertype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions