EsotericSoftware / EsotericSoftware/kryonet

KryoNet doesn't allow usage of Kryo 5.0.2's StdInstantiatorStrategy

Open
#161 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

Been working on a project since 2010 in Java, has been migrated through all the versions since. It's essentially outsider art what I'm working on.

Ran into a problem where I tried to serialize a SynchronizedRandomAccessList after migrating from Vectors both of which are part of the Java Standard Library. Easy way to do this, and how I'm going to fix it is simply modify the source of the Java Standard Library to add a no arg constructor for this. I shouldn't have to do this with any library.

What I should be doing is changing Kryo to use the standard strategy to StdInstantiatorStrategy as described in the Kryo Documentation, however KryoNet is using Kryo 2.2.0, instead of 5.0.2 and as such it doesn't exist that far back.

How to fix this:

Update Kryonet to use Kryo 5.x

How to reproduce it:

Try to declare a Instantiate Strategy with the library.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.