Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Ensure compliancy of Optional serialization for 2.6.0, wrt null checks #66

@cowtowncoder

Description

@cowtowncoder

As per discussion on Jackson-dev list, serialization inclusion checks for various "optional" types should work such that 'absent' value is NOT considered null-equivalent (only actual Java null should qualify), but need to be considered "empty" (and "default" where applicable, usually absent would be included but it depends).

This means a change for Guava module to get it in line with JDK8 Optional, and other similar referential types.

Since this is backwards incompatible change, an additional configuration property should be added in GuavaModule. Whether it should default to existing 2.5 behavior or not is open to discussion -- at this point I assume it should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions