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

[] operator does not work on Arrays

Details

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

    Description

      foo = foo.someArray()
      foo[0]

      will barf

      Attachments

        Activity

          A little example for the test case :

          arr = "my.property=value".split("=")
          arr[0]

          guillaume Guillaume Sauthier added a comment - A little example for the test case : arr = "my.property=value".split("=") arr [0]
          jstrachan James Strachan added a comment -

          now works for everything but primitive type arrays

          jstrachan James Strachan added a comment - now works for everything but primitive type arrays

          People

            jstrachan James Strachan
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: