This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 163019 [details] Invalid return type for method with @return static Code: class A { /** * Method description. * * @return static */ public static function test() { } } class B extends A { /** * {@inheritdoc} */ public static function test() { return parent::test(); } public static function testB() { } } class C extends B { public static function testC() { } } --- "C::test()->" gives you hints for A object instead of C (see attachment).
This occurs without {@inheritdoc}. So it's a CC problem. I'll look at it. Thanks for reporting!
Fixed. http://hg.netbeans.org/web-main/rev/f00b8098d5fc Thanks.
Integrated into 'main-silver', will be available in build *201704220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f00b8098d5fc User: Junichi Yamamoto <junichi11@netbeans.org> Log: #269108 - "@return static" does not work correctly