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

Property access doesn't always work on Java objects

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

Details

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

    Description

      Property access on Java objects doesn't always work.

      For example, this works:
      a = new javax.swing.JButton( "hello" )
      a.text

      And this works:
      a = new javax.swing.JButton( "hello" )
      a.getParent()

      But this does not:
      a = new javax.swing.JButton( "hello" )
      a.parent

      In the case above, getParent() returns a java.awt.Container. Perhaps the problem is with non-basic return types?

      Attachments

        Activity

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

          People

            jstrachan James Strachan
            rodcope Rod Cope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment