Unexpected groovy.lang.MissingPropertyException when extending Closure class

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: groovy-plugin

      groovy.lang.MissingPropertyException: No such property: node for class: Test
      Possible solutions: node
      is thrown by

      class Test extends Closure {
          def node
      
          Test() {
              super(null)
          }
          def doCall() {
              node += "world"
          }
      }
      
      node('master') {
          stage("1") {
              new Test(node: "hello")()
          }
      }

            Assignee:
            vjuranek
            Reporter:
            roel postelmans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: