Details
-
Bug
-
Resolution: Done
-
Major
-
9.4.21.Final, 11.0.9.Final, 12.0.1.Final
-
None
Description
InfinispanEmbeddedSessionRepository.findByIndexNameAndIndexValue() uses cache streams, but it uses them through the BasicCache interface instead of the Cache interface. This means the stream type is Stream, not CacheStream, and method overloads with serializable lambda parameters are not available.
Thus stream.collect(Collectors.toMap(MapSession::getId, Function.identity())) will make the collector non-serializable, and it will only work in local/replicated caches.