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

String.getAt throws NoSuchPropertyException with integer references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-RC-1
    • None
    • None

    Description

      a = 'abc'
      assert a[0] == '1' // works
      i = 0
      assert a[i] == '1' // fails

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: