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
So, other "reference type" deserializers handle things so that:
explicit null token becomes "empty" reference (like new AtomicReference<>(null) or Optional.empty())
absent (missing) value becomes Java null
but currently for Optional (2) is not true: instead, it behaves same as explicit null value from JSON.
This is problematic as it is not possible to distinguish "absent" case from explicit null.