You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a field has a number format, NumberUtils parses numeric strings with DecimalFormat#parse(String) but does not verify that the full input was consumed. A valid numeric prefix is accepted and trailing invalid text is silently discarded.
Malformed numeric strings should fail conversion rather than being partially accepted. Literal prefixes or suffixes that are part of the configured format should continue to parse normally.
Suggested fix
Parse with ParsePosition, require a successful parse and position.getIndex() == input.length(), and add tests for all numeric target families plus configured literal suffixes.
Related existing work
#1100/#1101 cover range checks for numeric cells. They do not cover incomplete parsing of formatted string cells.
Activity
fix: reject partial formatted number parses (#1152) (#1162)