Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw, don't overflow. Fix #160 #208

Merged
merged 1 commit into from
Nov 10, 2020
Merged

Conversation

ancane
Copy link
Contributor

@ancane ancane commented Nov 30, 2016

Hi. Just hit this issue and added checks for integral value bounds. Thanks.
PS. This is my original work.

Copy link
Member

@jrudolph jrudolph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one, that seems quite useful.

I wonder if that wouldn't be stricter than before, though. It seems it would have silently rounded decimal numbers before but now it would reject them. While it seems like acceptable behavior we cannot just make this change without thinking about keeping compatibility with the old behavior. (On the other hand I see allowing overflowing as a bug which would be fixed by this PR)

@ktoso
Copy link
Member

ktoso commented Oct 24, 2017

Tempted to merge this as overflows should be considered bugs; I'll omit in today's bump, since we mostly care for 2.13 Scala support now, but this could indeed be a good candidate to merge

@jrudolph jrudolph changed the base branch from master to release/1.3.x November 10, 2020 09:47
@jrudolph jrudolph merged commit a170dd3 into spray:release/1.3.x Nov 10, 2020
@jrudolph jrudolph added this to the 1.3.6 milestone Nov 10, 2020
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.

3 participants