Can you open a JIRA? On Sun, May 22, 2016 at 2:50 PM, Amit Sela <amitsel...@gmail.com> wrote:
> I've been using Encoders with Kryo to support encoding of generically > typed Java classes, mostly with success, in the following manner: > > public static <T> Encoder<T> encoder() { > return Encoders.kryo((Class<T>) Object.class); > } > > But at some point I got a decoding exception "Caused by: > java.lang.UnsupportedOperationException > at java.util.Collections$UnmodifiableCollection.add..." > > This seems to be because of Guava's `ImmutableList`. > > I tried registering `UnmodifiableCollectionsSerializer` and ` > ImmutableListSerializer` from: https://github.com/magro/kryo-serializers > but it didn't help. > > Ideas ? > > Thanks, > Amit >