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

Bugs of Range with BigDecimal boundaries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: