Skip to content

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

@Daburnell112

Description

@Daburnell112

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions