groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Gendron (JIRA)" <>
Subject [jira] [Created] (GROOVY-8948) BigDecimal to primtive conversion not working
Date Sat, 05 Jan 2019 20:28:00 GMT
Kenneth Gendron created GROOVY-8948:

             Summary: BigDecimal to primtive conversion not working
                 Key: GROOVY-8948
             Project: Groovy
          Issue Type: Bug
          Components: groovy-runtime
    Affects Versions: 2.5.5
            Reporter: Kenneth Gendron

The following code will not compile with Groovy:
Groovy insists that it try to find Math.ceil(BigDecimal), as opposed to performing the conversion
to a double.  The following will work though:
But the above should not be necessary as Groovy should unbox it.

Incidentally, this did work with version 2.4.12 and below.

This message was sent by Atlassian JIRA

View raw message