Skip to content

fix: reject partial formatted number parses - #1162

Open
Aias00 wants to merge 1 commit into
apache:mainfrom
Aias00:fix/numberformat-trailing-garbage-1152
Open

Aias00 wants to merge 1 commit into
apache:mainfrom
Aias00:fix/numberformat-trailing-garbage-1152

Conversation

@Aias00

@Aias00 Aias00 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Closed: #1152

Summary

  • require DecimalFormat parsing to consume the full input
  • keep configured suffix parsing working

Verification

  • ./mvnw -pl fesod-sheet -Dmaven.test.skip=false -DskipTests=false -Dtest=NumberUtilsTest#test_parseDouble_withFormatRejectsTrailingText+test_parseBigDecimal_withFormatAcceptsConfiguredSuffix test
  • ./mvnw -pl fesod-sheet spotless:check

Signed-off-by: liuhy <liuhongyu@apache.org>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Formatted numeric parsing silently accepts trailing garbage

1 participant