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

Add support for Long to TimeCategory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.4.12
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ppazos Pablo Pazos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: