Community
Participate
Working Groups
Build 20031119 Assuming that B is deprecated, a 'type B is deprecated' warning is reported against 'field'. It is not reported against 'foo()'. public class A { /** * @deprecated */ B field; /** * @deprecated */ B foo() { return null; } }
Field type check was outside the block of code updating the #fieldDeclarationIndex on initialization scope. Fixed
Verified for 3.0M6
This was backported to 2.1 stream. Verified for 2.1.3 with build I200402251535.
Build was M200402251535 and not I200402251535....
/* In this case (define class in method), reported yet. */ class A { public static void main(String[] args) { /** @deprecated (Great! Javadoc comments can be written here) */ class C { class D extends B {} // 2 warnigs in this line } } }
okano: please file separate bug report for your issue. Don't append to close ones.