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

Static compiler does not always make direct setter call inside inner class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.1
    • None
    • Static compilation
    • None

    Description

      Similarily to GROOVY-6823, this code doesn't produce a direct setter call. However, this one is more complex to fix due to the current static compilation architecture.

      @groovy.transform.CompileStatic
      class Outer {
          String outerProperty
          private class Inner {
              String fromInner() {
                  outerProperty = 'outer'
                  //uterProperty
              }
          }
      
          String blah() {
              new Inner().fromInner()
          }
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: