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.
If a Trait implements an abstract function defined in an interface, it does not show the implementation icon/hint (i.e. "(I)") in the Trait. Please note that the class uses the trait implements the interface.
Not a P2, sorry. Please, attach a sample file(s) so we are sure what you mean exactly. Thanks for reporting.
Well, let me explain with some code. Let's consider the following simple code. --- interface.php interface I { public function netbeans(); } --- trait.php trait T { public function netbeans() { return; } } --- class.php include 'interface.php'; include 'trait.php'; class C implements I { use T; } --- Well, now in the IDE, an implementation icon/hit (i.e. (I)) should be shown in the second line of the trait, right? But it does not show as expected. It only works if I write the function body inside the class, not the trait. Make sense? Please let me know if you need more clarification. Thanks in advance. :-)
Thanks for the sample codes.
Perhaps, many classes have to be checked if it is implemented because a trait does not know where itself is used. I think that it would have a performance problem. Thanks.
Yep, valid point. I think you can close the issue now. Thanks anyway. :-)
(In reply to AnmSaiful from comment #5) > Yep, valid point. I think you can close the issue now. Thanks anyway. :-) Sure :) I'll mark as RESOLVED. Thanks!