Community
Participate
Working Groups
Build R2.1 Only the most specific overriden deprecated method should impact the deprecation diagnosis generated when overriding a deprecated method. class X implements I +- foo() ---> should not complain about overriding deprecated method interface I implements J +- foo() ---> should complain about overriding deprecated method /** @deprecated */ interface J +- foo()
We are now skipping over deprecated methods if we find another inherited interface method which 'hides' the deprecated one. There is no performance side affect in non-problem cases. BUT we will not report a problem on X when implements K & J as in: class X implements K, J +- foo() interface K implements I interface J implements I +- foo() ---> should complain about overriding deprecated method /** @deprecated */ interface I +- foo()
Verified.