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

Can't test if a the value of a Character is greater than or less than a value

    XMLWordPrintableJSON

Details

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

    Description

      Character c = 'a'

      println c > 10

      throws:
      groovy.lang.GroovyRuntimeException: failed to invoke method: groovy.lang.MetaMethod@79f36b[name: run params: [] returns: class java.lang.Object owner: class test] on: test@5bfdbd with arguments: [] reason: java.lang.ClassCastException

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: