Skip to content

Improve detection of "is a NaN" to only consider explicit cases, not double overflow/underflow #1137

Description

@cowtowncoder

Currently it appears that too big (overflow) and too small (underflow) values can produce "Not a Number" (NaN) values from JsonParser, in addition to optionally supported tokens -- only allowed if enabled -- like +INF / -INF / NaN).

But doing this causes problem with BigDecimal handling since such "too big"/"too small" values CAN be represented as BigDecimal, whereas "true" Not-a-Numbers cannot.

So we should improve handling of JsonParser.isNaN() method so that it ONLY indicates explicit Not-a-Number cases, and not overflows.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions