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

NullPointerException when assigning an unknown property in a trait

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.8, 2.4.0-beta-4
    • 2.3.9, 2.4.0-rc-1
    • None
    • None

    Description

      The following code throws a null pointer exception during compilation:

      trait SetUnknown {
                      def setup() {
                          this.unknownProperty = 1
                      }
                  }
      

      Attachments

        Activity

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

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment