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

Groovy Console: binding is not preserved between selection invocations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-beta-2
    • Groovy Console
    • None

    Description

      It seems like there is a minor regression in GroovyConsole.
      In previous versions it was possible to run several pieces of code, and binging variables were preserved between invocations.
      Now binding seams to be empty for each next invocation.
      I tried using snapshot 20080906095551.

      Steps to reproduce:
      open groovyConsole, and paste this script:
      x = 1
      println x

      Select and execute first line, then select and execute second line.
      You will get groovy.lang.MissingPropertyException.
      Full stack trace is attached: stacktrace.txt
      In all previous GroovyConsole versions you would get "1".

      Attachments

        1. stacktrace.txt
          4 kB
          Sergey Bondarenko

        Activity

          People

            shemnon Daniel Ferrin
            enterit Sergey Bondarenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: