Also an object implementing multiple functional interfaces. In dynamic mode, you wouldn't know which method to invoke.
On Thu, Apr 29, 2021, 12:34 Jochen Theodorou <blackd...@gmx.org> wrote: > On 29.04.21 15:32, Christopher Smith wrote: > > Sure, this is theoretically possible (though many functional interfaces > > aren't annotated), but the convenience I'm asking about would have to be > > compile-time, because it would depend on the declared type (which is > > part of why I suspect it might not even make semantic sense in the > > underlying dynamic model). > > why does it have to be compile time only? I don't quite get that. The > problem you have to face is of course an Object, which realizes a > functional interface, but also has a call method (not part of the > interface) > > bye Jochen >