NumberFormatException on DecimalTextField with value NaN

Description

This issue appears to have been introduced by GEOS-7621.

When a DecimalTextField or similar is passed the value NaN, then validated, a NumberFormatException is thrown:

This occurs because the wicket AbstractNumberConverter uses BigDecimals, which cannot handle NaN or +/- infinity.

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Torben Barsballe

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure