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.
Duplicate entries in code completion functionality (see attached image). ----- Product Version = NetBeans IDE 7.2 RC1 (Build 201206272359) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_04 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.0-b21
Created attachment 121899 [details] Duplicate entries in code completion
I've been fixing some "duplicate entries" issue. So please, provide me the simplest reproducible test case. These problems are hard to discover from scratch. Than simply reopen this issue. Thanks.
This occurs after class redeclaration. For example: A.php <?php class A extends Exception { public $exceptionA; } A_1.php <?php class A extends Exception { public $exceptionB; } index.php <?php $exception = new A('',1); $exception->
It's another problem. But it's definitely _won't fix_...you really shoudn't have more classes with the same name in same namespace. Especially if one uses some kind of autoloading, it will end up with an error (ambiguous class). It's nonsense and absolutely inconsistent.
Yes, you are right. I used that approach only for code completion to define dynamic properties/methods for third party classes, served by composer, which I can not edit. However i noticed that i don't need to extend those classes to get auto completion working. Thanks for the tips.
But what about: A.php <?php class A extends Exception { public $exceptionA; } B.php <?php class B extends Exception { public $exceptionB; } index.php <?php class index { /** * * @var A|B */ public $exception; } $exception = new index(); $exception->exception->
Ok, that's valid use case. Fixed in web-main #a93e69750eed
Integrated into 'main-silver', will be available in build *201402140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a93e69750eed User: Ondrej Brejla <obrejla@netbeans.org> Log: #215371 - Duplicate entries in code completion
Verified. Thanks. Product Version: NetBeans IDE Dev (Build 201402170649) Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b67 Runtime: Java(TM) SE Runtime Environment 1.8.0-b126 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)