Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7139

automated constant optimization for BigDecimal

    XMLWordPrintableJSON

Details

    Description

      when writing double d = 1.2, then Groovy first creates a BigDecimal to then transform it to a double. Using any primitive type I think there is no need to first create the BigDecimal, it should be good enough to just create a constant for the target type. I think this is especially important for the static compiler, but a general Groovy problem

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: