Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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