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

Comparison null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.9
    • None
    • groovy-runtime
    • None

    Description

      Stable when comparing null by operator less with any not null value, the expression evaluates to true:

      println null == null // correct, true
      println null > null // correct, false
      println null < null // correct, false
      println null == 0 // correct, false
      println null > 0 // correct, false
      println null < 0 // incorrect, true (???)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ascrus Alexsey Konstantinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: