Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2503 MOP 2.0 design inflluencing issues
  3. GROOVY-1569

correct closure property access to field access the same way it is done this.x

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • class generator

    Description

      this code:

      class A {
        private foo = 1
        def getFoo(){
          10.times { println this.foo }
          return this.foo+1
        }
      }
      
      def a = new A()
      println a.foo
      

      should not end in a stack overflow

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              blackdrag Jochen Theodorou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: