Skip to content

JsonBinaryType for non serializable types in 3.15 #834

@cigaly

Description

@cigaly

Latest changes in io.hypersistence.utils.hibernate.type.util.ObjectMapperJsonSerializer are making impossible to clone non serializable object. One of consequences is that io.hypersistence.utils.hibernate.type.json.JsonBinaryType can not handle non serializable types any more.

Example code below will now throw ClassCastException

        Object original = new NonSerializableObject("value");
        final var type = new JsonBinaryType(NonSerializableObject.class);
        final var cloned = type.deepCopy(original);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions