You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pablo Pazos (JIRA)" <ji...@apache.org> on 2017/09/27 06:14:00 UTC

[jira] [Created] (GROOVY-8331) Add support for Long to TimeCategory

Pablo Pazos created GROOVY-8331:
-----------------------------------

             Summary: Add support for Long to TimeCategory
                 Key: GROOVY-8331
                 URL: https://issues.apache.org/jira/browse/GROOVY-8331
             Project: Groovy
          Issue Type: Bug
          Components: groovy-jdk
    Affects Versions: 2.4.12
            Reporter: Pablo Pazos
            Priority: Minor


Currently TimeCategory is only for Integer http://docs.groovy-lang.org/docs/groovy-2.1.3/html/api/groovy/time/TimeCategory.html

Sometimes numbers are created from configuration values or variables not controlled by the code that uses the TimeCategory, with dynamic types, those values can be Long or Integer. When class is Long, TimeCategory methods fail, like value.minutes.

Adding Long will avoid that issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)