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

'in' with an array always returns false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2
    • None
    • None
    • java 6, Windows XP SP2

    Description

      'in' always returns false with an array:

      String[] array1 = [ "test1", "test2" ]
      assert !( "test1" in array1 )
      assert !( "test3" in array1 )
      

      Attachments

        Activity

          People

            paulk Paul King
            rene.de.bloois René de Bloois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: