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 deserializing a json string created using JsonWriter.TYPE set to false, the string cannot be deserialized if it contains an EnumSet, the following code in com.cedarsoftware.util.io.ObjectResolver show that if item.getType() returns null (expected cause no type is written) then classForName() call will fail and throw an exception.
The type could be derived from the real object field type but here the Class c does not have the generic type the information, the Field instance has it but not the Class.
This method would need a variant that takes a field - and then that version used in the appropriate places. Probably not a simple smash-and-grab job, though.
When deserializing a json string created using JsonWriter.TYPE set to false, the string cannot be deserialized if it contains an EnumSet, the following code in com.cedarsoftware.util.io.ObjectResolver show that if item.getType() returns null (expected cause no type is written) then classForName() call will fail and throw an exception.
The type could be derived from the real object field type but here the Class c does not have the generic type the information, the Field instance has it but not the Class.
The text was updated successfully, but these errors were encountered: