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

Error declaring variables in scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-9
    • 1.0-JSR-2
    • None
    • None

    Description

      The following code:

      import javax.swing.JFrame
      javax.swing.JFrame foo;

      throws the following exception:

      Caught: groovy.lang.MissingPropertyException: No such property: foo for class: test

      it should declare a variable.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            mcspanky Martin C. Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: