Skip to content

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

@cowtowncoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.17Issues planned (at earliest) for 2.17

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions