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.
[dev-200506142000, JDK 1.5.0_04] Invoke CC for method that has no arguments, IDE offers all possible items available in current context which is wrong.
It's not regression, it's feature of new CC :-)
As agreed with Dusan, code completion should be fixed in the case when a method has no parameters. Code completion should show empty window and probably write something like "this method has no parameters". When one or more parameters are available, it's correct that all possible items are given as options.
*** Issue 60055 has been marked as a duplicate of this issue. ***
Don't see why this is a P2 - lowering priority.
empty method should be displayed to provide a javadoc in the popup. Other completion items should not be visible in such case.
IMHO, in general, code completion should offer all possible items available in the context regardless of underlying method. While editing a source code, user can add a parameter to a certain method call first and then change the method declaration. Perhaps, some kind of a "smart" completion (with a different shortcut) could be provided in the future, that takes the underlying method parameters in count. Changing to ENHANCEMENT.
Closing as WONTFIX - see the last comment.