Hi Moritz,

I've tried to adapt Your gist to something else but I've realized that
it does not work with stubs. Is it possible to bypass problem with
incomplete R?

https://gist.github.com/teodozjan/b7183c81c966cfeee3bd

I feel very inspired :)

On Fri, May 16, 2014 at 10:44 AM, Moritz Lenz <mor...@faui2k3.org> wrote:
> Hi Kamil,
>
>
> On 05/15/2014 07:48 PM, Kamil Kułaga wrote:
>>
>> Is there any ordinary way (not something like getting list of methods
>> from base class) to ensure we are overriding method?
>>
>> Java has @Override annotation that that causes compilation error if
>> method is not necessary for Interface(Role). It is very handy if class
>> does many of them and someone cuts out deprecated method and there is
>> no reason to implement them any longer.
>
>
> Not by default, but the meta programming facilities make it just a small
> exercise to implement such a thing in user space.
>
> I've done that in
> https://gist.github.com/moritz/2c6ed01eef0029dabdeb
>
> Feel inspired :-)
>
> Cheers,
> Moritz



-- 
Pozdrawiam

Kamil Kułaga

Reply via email to