Details
-
Type: New Feature
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Toys
-
Labels:None
-
Number of attachments :
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.
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 ?