castleproject / Core

Castle Core, including Castle DynamicProxy, Logging Services and DictionaryAdapter
http://www.castleproject.org/
Other
2.2k stars 468 forks source link

Fix `MissingMethodException` when proxying interfaces containing sealed methods #621

Closed stakx closed 2 years ago

stakx commented 2 years ago

This is a first small step towards support for default interface methods (#447).

Not certain whether this warrants a changelog entry on its own, since what is being fixed here never got reported as an issue. Perhaps we just wait with a changelog entry until we have fully addressed #447?

P.S.: marking this as a draft as it may be incomplete; the same issue may still be present with proxies that have a target.

stakx commented 2 years ago

This may not be totally complete (the same problem may persist for other proxy types) but it's still a step in the right direction. So instead of letting this rot away, I'll merge it. I'll likely pick this topic up again as I'm still working on better support for new interface capabilities.