ProxyToys
  1. ProxyToys
  2. PTOYS-11

Support delegation with matching arguments.

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Toys
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The delegation toy knows currently two delegation modes:

      • static_typing: delegate must have invoked method
      • dynamic_typing: delegate must have a method with same name and signature as the invoked method

      New:

      • compatible_typing: delegate must have a method with same name and compatible arguments as the invoked method

      Note: This is an API change, since current mode selection is a boolean.

        Activity

        Hide
        Paul Hammant added a comment -

        current mode selection is an enum, with DIRECT and SIGNATURE as modes, and not a boolean as above.

        Jorg, what does not 'compatible arguments' mean?
        Some clever use of isAssignableFrom() or instanceof ?

        Show
        Paul Hammant added a comment - current mode selection is an enum, with DIRECT and SIGNATURE as modes, and not a boolean as above. Jorg, what does not 'compatible arguments' mean? Some clever use of isAssignableFrom() or instanceof ?
        Hide
        Jörg Schaible added a comment -

        Remember now: Compatible argument means e.g. called method has int argument delagete method has Long argument.

        Show
        Jörg Schaible added a comment - Remember now: Compatible argument means e.g. called method has int argument delagete method has Long argument.

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: