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

Bugs of Range with BigDecimal boundaries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-2
    • Fix Version/s: 1.0-JSR-3
    • Component/s: None
    • Labels:
      None

      Description

      def ran = 1.0..5 // The "from" value of ran is a BigDecimal 1.0

      println ran
      ran.contains(2) // doesn't work on JSR-02
      ran.size() // doesn't work on JSR-02
      ran.get(1) // doesn't work on JSR-02
      println "ran = " + ran // doesn't work on the current JSR-03 SNAPSHOT

        Attachments

          Activity

            People

            • Assignee:
              phkim Kim, Pilho
              Reporter:
              phkim Kim, Pilho
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: