Skip to content

JavaSerialiazation error with primitive types #922

@techexplorer0310

Description

@techexplorer0310

When we use JavaSerialization and if the object being serialized has primitive fields like int, char etc then we can ClassNotFoundException for int.class. Earlier ObjectInputStream was used to resolveClass which was handling this.
In the latest version ObjectInputStreamWithKryoClassLoader is used which does not handle this

To Reproduce
Use java serialization and read an object which has int field type.

Environment:

  • OS: All
  • JDK Version: 17
  • Kryo Version: 5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions