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

NullPointerException when assigning an unknown property in a trait

    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

          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: