Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.6
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      If a class defines a private field and a method that uses a closures referencing this private field, then a groovy.lang.MissingPropertyException is thrown any time this method is called from a subclass.

      It can be reproduced in the groovy console with the script in attachment. If "iterate" is called on the parent it works (text is appended to stdout - no exception), but if it is called from the subclass it fails (only the text from outside the closure is displayed and then an exception is thrown).

      This issue come from a deeper investigation on http://groovy.329449.n5.nabble.com/Exception-when-extending-ASTTransformationCustomizer-td5630073.html

      1. reproduce.groovy
        0.3 kB
        Mathieu Bruyen

        Activity

        Mathieu Bruyen created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Sub-task [ 7 ]
        Parent GROOVY-3010 [ 72508 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734358 ] Default workflow, editable Closed status [ 12746127 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971852 ] Default workflow, editable Closed status [ 12979627 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Mathieu Bruyen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development