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

variables are not preserved across commands in the shell

    XMLWordPrintableJSON

Details

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

    Description

      variable bindings are not preserved across statements in the shell...

      groovy> list = [1, 2, 'hello', new java.util.Date()]
      groovy>
      [1, 2, "hello", Tue Dec 23 11:31:41 CST 2003]
      groovy> list.size()
      groovy>
      Caught: java.lang.NullPointerException: Cannot invoke method: size on null object

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: