You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.