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
This is a very minor improvement to provide more helpful error messages:
Describe the solution you'd like
Calls to Kryo.readObject(Input, Class) will throw an exception if passed an abstract class:
com.esotericsoftware.kryo.kryo5.KryoException: Error constructing instance of class:
This of course makes sense but the error message isn't very helpful. It doesn't actually explain why the the class couldn't be constructed. The underlying java.lang.InstantiationException provides zero information.
A more helpful protocol might be for kryo.readObject would immediately detect that it's being asked to instantiate an abstract class and raise an IllegalArgumentException.
The text was updated successfully, but these errors were encountered:
This is a very minor improvement to provide more helpful error messages:
Describe the solution you'd like
Calls to Kryo.readObject(Input, Class) will throw an exception if passed an abstract class:
This of course makes sense but the error message isn't very helpful. It doesn't actually explain why the the class couldn't be constructed. The underlying java.lang.InstantiationException provides zero information.
A more helpful protocol might be for kryo.readObject would immediately detect that it's being asked to instantiate an abstract class and raise an IllegalArgumentException.
The text was updated successfully, but these errors were encountered: