Skip to content

[Java] add support so that deserializeJavaObject will throw an exception if the encoded data is of wrong type #2392

@pjfanning

Description

@pjfanning

Feature Request

I have an ignored test case in #2378 where Fory returns null instead of failing with an exception.
The test case passes with the wrong type in the input params.
If we like nulls (and I hate them), can we add a ForyBuilder option to allow users to opt out of ever getting nulls from deserializeJavaObject?

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions