Skip to content

JsonValue.valueOf( float / double ) should check NaN and ±Infinite values #15

@biziclop

Description

@biziclop

Otherwise
JsonValue.valueOf( Math.log(-1)).toString();
will throw up a NumberFormatException like a drunken sailor, because inside JsonNumber.toString() the called function BigDecimal.valueOf() doesn't really like non-finite values.

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