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

Character doesn't support arithmetic operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0-beta-4
    • None
    • None

    Description

      Character c1 = 'b'
      x = c1 - 1
      y = c1 - x
      println "c1 = '${c1}'"
      println "x = '${x}'"
      println "y = '${y}'"

      throws:

      Caught: groovy.lang.MissingMethodException: No such method: minus for class: java.lang.Character with arguments: [1]

      Attachments

        Activity

          People

            tug John Wilson
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: