logo       

New bug identified: Method does not override from superclass?: msg#00020

java.findbugs.general

Subject: New bug identified: Method does not override from superclass?

Hi,

Sorry if this has cropped up before, I've only just sub'd.

I've just discovered a bug in our software that fits what I think is a
fairly common pattern. The pattern is that a method signature has been
modified in a supertype but the change isn't reflected in a subtype and
so when the method is invoked on the subtype, the subtype specific
implementation is never used. I ran FindBugs
(edu.umd.cs.findbugs.plugin.eclipse_1.1.1.v20061005-rc3.zip) which
didn't spot the problem.

Could a rule be written to catch a method in a subclass that have the
same name as a method in the superclass, but doesn't override that method?

Thanks,

Rob


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise