Groovy
  1. Groovy
  2. GROOVY-4994

wrong delegate for ComposedClosure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.2, 1.9-beta-3
    • Component/s: None
    • Labels:
      None

      Description

      def a = { println foo }
      def b = { println bar }
      
      class O {
          def foo = 'foo'
          def bar = 'bar'
      }
      
      def ab = a >> b
      ab.delegate = new O()
      ab()
      

      throws groovy.lang.MissingPropertyException: No such property: foo for class: ConsoleScript5

        Activity

        Jochen Theodorou created issue -
        Hide
        Jochen Theodorou added a comment -

        fixed in a7b4af5d58be26a0dbabe7dac941a7c26470438c

        Show
        Jochen Theodorou added a comment - fixed in a7b4af5d58be26a0dbabe7dac941a7c26470438c
        Jochen Theodorou made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.8.2 [ 17495 ]
        Fix Version/s 1.9-beta-2 [ 17494 ]
        Assignee Jochen Theodorou [ blackdrag ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733920 ] Default workflow, editable Closed status [ 12745576 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971304 ] Default workflow, editable Closed status [ 12979092 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        32m 35s 1 Jochen Theodorou 30/Aug/11 16:06

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            Jochen Theodorou
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development