Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264980

Bag report from BigDecimal classes

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      ubuntu 20.10
      Java 15.0.2


      A DESCRIPTION OF THE PROBLEM :
      When i rum this cone, i see false value. My inerprise project everywhere use this classes, and i have to mach bags because of this
      var a = BigDecimal("0.00000000")
      println(a == 0.toBigDecimal())


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      var a = BigDecimal("0.00000000")
      println(a == 0.toBigDecimal())

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      false

      ---------- BEGIN SOURCE ----------
      var a = BigDecimal("0.00000000")
      println(a == 0.toBigDecimal())
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      var a = BigDecimal("0.00000000")
      println(a == 0.toBigDecimal())

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            tongwan Andrew Wang
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: