Closed
Description
MappingRedisConverter.write(…)
attempts to obtain an entity from the given object to later on decide how to serialize it (collection, map, …). PersistentEntity
retrieval breaks if the type is encapsulated (e.g. Arrays.asList(…)
). The code still attempts to obtain a keyspace and the identifier accessor.
We should generally avoid identifier, keyspace name, and TTL retrieval from a collection as collections do not have such a property.
Activity
Run top-level collection conversion tests only on Java 8.
Leehyoungwoo commentedon May 7, 2025
Hi @mp911de
I’ve checked the MappingRedisConverter.write(...) method in #2168 and it looks like the early “if (source instanceof Collection)” branch hasn’t been added yet. Would you mind if I pick this up and submit a PR that moves the collection check to the top and skips the entity/keyspace lookup for top-level collections?
Annotate writePlainList test with spring-projectsGH-2168 and remove J…
Annotate writePlainList test with spring-projectsGH-2168 and remove J…
Annotate writePlainList test with spring-projectsGH-2168 and remove J…
Annotate writePlainList test with spring-projectsGH-2168 and remove J…
4 remaining items