You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Potential bug converting an Option of Java BigDecimal to an Option of Scala BigDecimal #6567
The variable x is not actually None but a Some of the Scala BigDecimal object. The Scala BigDecimal object is incorrectly formed with the internal data structure set to null.
I have resolved this using the following implicit conversion, but wanted to highlight this in case this is perceived as an issue with the BigDecimal conversion logic.
Activity
scabug commentedon Oct 25, 2012
Imported From: https://issues.scala-lang.org/browse/SI-6567?orig=1
Reporter: Alex Luketa (aluketa)
Affected Versions: 2.9.1
scabug commentedon Nov 3, 2012
@retronym said:
It seems that applying an implicit view in the argument to
Option.applywould almost always be a bug.I propose to add a warning under the compiler option
-Xlint.scala/scala#1565
scabug commentedon Nov 3, 2012
Alex Luketa (aluketa) said:
Thanks Jason
scabug commentedon Nov 4, 2012
@retronym said:
Merged for 2.11 scala/scala@2c6777f
scabug commentedon Jan 22, 2013
@adriaanm said:
reopening for 2.10.1-RC1 backport
scabug commentedon Jan 23, 2013
@retronym said:
backport: scala/scala#1954