Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Handle iterables #13
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I added an Iterable serializer, but the problem is on the deserialization side you are going to get something acts as if it was just: Iterable(1,2,3), which may not be the type that some other code is exception.
I tried to add a direct serializer, but I had a bit of trouble getting the Class object associated with this type due to the f-bounded polymorphism. Reflection may have to come into play. Since it is java.io.Serializable, the best approach is probably to use Kryo's JavaSerializer for this type (especially since it probably isn't too common).
That, or you can manually convert that type into a List or something (using .toList) before you pass it along.
If you are able to create a class object for this type, just do:
.javaForClass(ClassManifest.fromClass(/* class object here */))
(using the RichKryo enrichment).