mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Previously, PropertyEditorRegistrySupport.addStrippedPropertyPaths() recursively enumerated every combination of stripped/retained [key] segments in a property path, producing 2^n - 1 variants for a path with n bracket pairs. To address that, this commit limits the recursion at a depth of 8, preserving existing behavior for realistic property paths while bounding the work done for paths with an unusually large number of bracket segments. Closes gh-37020