I think this is an issue a code smell detector chould
take care of. Find usages could then "call" the code
smell detector to look for this.
This integration of a code smell detector can probably
be applied to a lot of other things, too, to warn
of known "surprises" like this. Or maybe that's too
much hand-holding?

BTW, in the case you describe, if you override the
method "doIt" in class Extended, does IDEA flag it
as implementing interface TestIF (with the margin
icon)?

-Thomas

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 1:45 AM
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] deep inheritance?
> 
> 
> say you have a interface like this:
> public interface TestIF
> {
>    public void doIt();
> }
> 
> and a BaseClass that does not implement the interface,
> but has the method:
> 
> public class Base
> {
>    public void doIt() { System.out.println("doIt"); }
> }
> 
> then an extended class implementing the interface:
> 
> public class Extended extends Base implements TestIF
> {
> }
> 
> -> if you invoke 'find usages, implementing methods, check deep
> inheritance' on the interface-method, it does not show
> Base as result.
> this is somehow correct, as Base indeed does not implement the
> interface, but on the other hand it would be neat if it could somehow 
> be shown that Extended is implementing the method by inheriting
> it from Base...
> 
> yes, I know that this example with a "pre-implementing" base class 
> is probably just bad style ...
> 
> 
> best regards,
> Michael Damberger
> 
> ____________________________________________________
> Berufsunf�higskeitversicherung von Mamax bei WEB.DE. 
> Jetzt informieren! http://bu.web.de
> 
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
> 


************************************
If this email is not intended for you, or you are not responsible for
the delivery of this message to the addressee, please note that this
message may contain ITT Privileged/Proprietary Information.  In such
a case, you may not copy or deliver this message to anyone.  You should
destroy this message and kindly notify the sender by reply email.
Information contained in this message that does not relate to the
business of ITT is neither endorsed by nor attributable to ITT.
************************************



_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to