Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9172

Make `Closure` implement `Supplier`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Creating dynamic proxy could be avoided if Closure/sub-classes, e.g. Closure0<V>, Closure1<T1, V>, etc implement functional interfaces, e.g. `Function`, `Supplier`, etc.

      (As a reminder, lambda expressions are actually closures in dynamic compilation mode)

       

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m