Community
Participate
Working Groups
please add the same two checkboxes that are under 'Parameter is never read' * check when overriding concrete method * check when implementing abstract method that last one is really driving me nuts, as when implementing an interface its common to not throw the exception. BTW, this product doesn't suck.
Needs some compiler support first.
We will add support for this scenario, in a combined option: - check when overriding method (taking care of the concrete and abstract scenario)
I'm not sure if Alvin ment the same but I experience trouble when a method (declaring an unnecessary throws) is overwritten by another method (this time the throws is necessary). Removing the first throws of course leads to a compile error
This is enforced by the language spec, and this is why we added the extra control to tolerate unused exceptions in overriding methods, ad further subclasses may require these. It is not solving all cases, but most of them, in a non-expensive way. Also see comments in bug 44876 *** This bug has been marked as a duplicate of 44876 ***