IndexAccessor
cannot support custom Collection
target type
#32736
Labels
Milestone
IndexAccessor
cannot support custom Collection
target type
#32736
Overview
Due to the current implementation of SpEL's
Indexer
, anIndexAccessor
cannot provide custom support for aCollection
target type.The reason is that
Indexer
owns theCollection
target type.spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/ast/Indexer.java
Lines 234 to 241 in a3afe51
We should be able to ensure that a custom
IndexAccessor
can provide support for aCollection
target type by separating our built-inList
andCollection
support and applying the built-inCollection
support after custom index accessors have been applied, analogous to what we did in #32706. The built-inList
support should still be applied before custom index accessors and therefore remain unchanged.Related Issues
IndexAccessor
SPI to customize the SpELIndexer
#26478IndexAccessor
cannot supportString
index type #32706The text was updated successfully, but these errors were encountered: