Skip to content

validate scale before converting to BigInt #3864

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

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

pjfanning
Copy link
Member

@pjfanning pjfanning commented Apr 6, 2023

see #3863

@cowtowncoder cowtowncoder merged commit 2228d54 into FasterXML:2.15 Apr 6, 2023
*/
public BigInteger bigIntegerValue() { return BigInteger.ZERO; }
public BigInteger bigIntegerValue() throws StreamConstraintsException { return BigInteger.ZERO; }
Copy link
Member

Choose a reason for hiding this comment

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

Actually.... this is backwards-incompatible change, will need to wrap exception. Since I just merged I'll change this.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, decided to use "sneaky throw" instead. Not ideal but will (have to) do for now.

cowtowncoder added a commit that referenced this pull request Apr 6, 2023
@pjfanning pjfanning deleted the bigint-scala-validation branch April 6, 2023 21:17
@cowtowncoder
Copy link
Member

Thank you for catching these cases @pjfanning !

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.

2 participants