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.
Product Version = NetBeans IDE Dev (Build 201003270201) Operating System = Linux version 2.6.31-20-generic running on amd64 Java; VM; Vendor = 1.6.0_15 Runtime = Java HotSpot(TM) 64-Bit Server VM 14.1-b02 When creating method defined by interface code completion will correctly suggest available method names but hitting enter creates messy code.
Created attachment 96081 [details] Correctly invoked code competition Image displays correctly invoked code completion showing methods defined by interface
Created attachment 96082 [details] Messy code Image displays messy code created after selecting desired method name defined by interface and hitting enter.
Happens just in case when method skeleton already exists like this: public function |($param) { ; } | represents current offset in the document. Typically is CC used: 1/ public function | 2/ | So, bug but P4, I think
I think that in the latest builds there is regression. I tried to invoke code completion as you suggested but I am getting "no suggestions". Further on there is similar problem with PHP magic methods. I did open the bug regarding magic methods problem but it's closed at some point I can't find it anymore. :( If I am right I think that priority should be changed. This problem should be resolved in 6.9. It's annoying. :)
works for me, don't see regression in the latest builds there
Created attachment 98775 [details] your method
Created attachment 98777 [details] method that I prefer
Product Version: NetBeans IDE Dev (Build 201005060200) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01 System: Linux version 2.6.32-22-generic running on amd64; UTF-8; en_US (nb) In Build 201005060200 the way to invoke code completion you suggested in comment #3 is not working. That sounds to me as regression since it was working at time you suggested how to invoke code completion.
batch reassigning
Batch reassigning.
Doesn't work for constructors as well...same problem. *** This bug has been marked as a duplicate of bug 176351 ***