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

should support getting of listener properties

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-4
    • None
    • None

    Description

      this works

      b = new javax.swing.JButton("foo")
      b.actionPerformed = { println("Found ${it}") }

      however this fails

      groovy> b.actionPerformed
      groovy>
      Caught: groovy.lang.MissingPropertyException: No such property: actionPerformed for class: javax.swing.JButton
      groovy.lang.MissingPropertyException: No such property: actionPerformed for class: javax.swing.JButton
      at groovy.lang.MetaClass.getProperty(MetaClass.java:434)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment