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

The checking of property names during AST transform attribute processing doesn't take into account includeSuperProperties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0-alpha-1
    • xforms
    • None

    Description

      Example shown below is for @ToString but the issue affects numerous xforms:

      import groovy.transform.*
      
      @ToString
      class Foo {
        String baz = 'baz'
      }
      
      @ToString(includes='baz', includeSuperProperties=true)
      class Bar extends Foo {
        int num = 42
      }
      
      new Bar().toString()
      // 1 compilation error: Error during @ToString processing: 'includes' property 'baz' does not exist.
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              paulk Paul King
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: