Clarify exception handling for numbers outside the BigDecimal range
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- backend-api-design
Research direction
Read the JsonParser.getBigDecimal() and JsonReader.readValue() contracts first, then locate Parsson’s numeric conversion path and compare the 1.1.9 tag with master at 55f9509. The issue is asking maintainers to confirm whether an out-of-range NumberFormatException is wrapped as JsonParsingException, so “done” is a settled contract plus a matching test or documentation note, not a patch startable from the issue alone.
Written by the indexing model from the issue text.
Description
For a syntactically valid JSON number outside the range that BigDecimal can represent, what error should a Parsson caller expect?
The JSON-P 2.1.3 JsonParser.getBigDecimal() contract describes conversion in terms of the BigDecimal constructor. The JsonReader.readValue() contract describes JsonParsingException for an incorrect representation, and RFC 8259, section 6 allows implementations to limit numerical range and precision.
Should a NumberFormatException from this conversion be wrapped as JsonParsingException when reading a JSON value, or is it part of the implementation's numeric range limit? Is the intended behavior different for the streaming numeric accessor?
Six ordinary numeric checks passed with Parsson 1.1.9 and Java 8. The conversion implementation matches between the 1.1.9 tag and master at 55f9509. The out-of-range case was reviewed from source. Could you confirm the intended contract?
- Dominant language
- Java
- Stars
- 18
- Forks
- 27
- Avg merge
- 20h 35m
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-ee4j/parsson
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
eclipse-ee4j/parsson#173 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
eclipse-ee4j/parsson#177 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
eclipse-ee4j/parsson#146 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
eclipse-ee4j/parsson#123 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
eclipse-ee4j/parsson#120 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in eclipse-ee4j/parsson
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
erkamyaman/rust-anything#1153 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
NullPointerException in BukkitPlayerListener.onInventoryClickEvent when InventoryAction is nullOpenbug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
expandRepos produces a single comma-separated argument instead of splittingPossibly taken @Sanne-ai-bot claimed this today. Openagent:pr go:build
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Sanne/incus-spawn#2871 · 1 comment ·
Maintainers usually reply within 1 day