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

Use static method dispatch when possible if types are statically declared

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.0-RC-1
    • class generator
    • None

    Description

      Right now, Groovy always uses dynamic dispatch through invokeMethod to call methods, regardless of whether the type of the caller is known statically.

      It should be possible for Groovy to use static dispatch in cases where invokeMethod
      is not modified. (The tricky part of this is ensuring that invokeMethod continues to work correctly.)

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              markcc Mark C Chu-Carroll
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified