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

scala.math.BigDecimal should not accept a null value #6456

Closed
scabug opened this issue Oct 1, 2012 · 2 comments
Closed

scala.math.BigDecimal should not accept a null value #6456

scabug opened this issue Oct 1, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Oct 1, 2012

The scala.math.BigDecimal wrapper can currently wrap null values. This can be tricky as clients will need to handle null checking on the wrapper as well as the wrapped object. The problem is compounded when implicit conversion from the java equivalent is applied.
scala.math.BigdDecima.javaBigDecimal2bigDecimal should handle the null value and avoid wrapping it.

@scabug
Copy link
Author

scabug commented Oct 1, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6456?orig=1
Reporter: Ralph C (ralph961)

@scabug
Copy link
Author

scabug commented Jan 15, 2014

@adriaanm said:
scala/scala#3316

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

No branches or pull requests

2 participants