JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 798 forks source link

@DebugLog has no effect on interfaces' methods #39

Closed jonasfa closed 10 years ago

jonasfa commented 10 years ago

It would be useful if Hugo logged calls for all implementations of an @DebugLog-annotated interface method.

JakeWharton commented 10 years ago

Because of the way Hugo works this is not possible. It might be able to find some of the implementations of the interface but it's guaranteed to not find all and would certainly miss some which would create ambiguous behavior.

I'd prefer to keep the rules simple and just say that it only works on methods directly.