CPS interpreter fails on calls to find(), findAll() default methods

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The CPS interpreter does not translate calls to .find() , .findAll() default methods correctly.

      The following test case fails:

      assert evalCPS("[1,2,3].find { it > 1 }") == 2
      

      I see that groovy-cps has an CpsDefaultGroovyMethods class that provides an alternate implementation of each(). Does this mean that all methods that accept a closure as an argument will also fail?

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            Alexander Bertram
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: