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.

Bug 60064 - Smart code completion for method parameters
Summary: Smart code completion for method parameters
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 60055 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-15 14:36 UTC by Milan Kubec
Modified: 2008-10-15 10:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-06-15 14:36:33 UTC
[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.
Comment 1 Milan Kubec 2005-06-15 14:42:59 UTC
It's not regression, it's feature of new CC :-)
Comment 2 Roman Strobl 2005-07-07 12:33:45 UTC
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.
Comment 3 Roman Strobl 2005-07-11 16:57:10 UTC
*** Issue 60055 has been marked as a duplicate of this issue. ***
Comment 4 Martin Matula 2005-08-18 16:53:49 UTC
Don't see why this is a P2 - lowering priority.
Comment 5 Martin Roskanin 2005-10-20 10:20:28 UTC
empty method should be displayed to provide a javadoc in the popup.
Other completion items should not be visible in such case.
Comment 6 Dusan Balek 2005-11-07 11:07:11 UTC
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.
Comment 7 Dusan Balek 2008-10-15 10:14:28 UTC
Closing as WONTFIX - see the last comment.