Bug 46426 - [content assist] Code assist for method parameters pops up for invalid methods
Summary: [content assist] Code assist for method parameters pops up for invalid methods
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 14:09 EST by John P. A. Verhaeg CLA
Modified: 2020-02-22 07:13 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John P. A. Verhaeg CLA 2003-11-11 14:09:50 EST
I just noticed that if I type:

  System.arrayCopy() // Notice the incorrect uppercase 'C'

, put the cursor between the parentheses, and hit Ctrl-Space, I get a 
parameter code assist for correctly spelled method, System.arraycopy.  This is 
misleading.  If instead the pop-up assist window never showed up, it would be 
an indication that my method was wrong, and would be consistent with what 
happens when an import is missing.  I understand the reasons for case-
insensitivity when code assist is dealing with a member name, but this 
shouldn't apply for parameters.
Comment 1 Dani Megert CLA 2003-11-13 06:53:28 EST

*** This bug has been marked as a duplicate of 25305 ***
Comment 2 John P. A. Verhaeg CLA 2003-11-13 10:55:51 EST
This bug isn't a duplicate of 25305, as it's recently been marked.  25305 
discusses a situation where case-sensitivity is basically a user preference.  
This issue describes a situation that will always be incorrect.  Please reopen 
this bug or add this problem to 25305.
Comment 3 Dani Megert CLA 2003-11-13 18:15:53 EST
Sorry, you are of course right.

How would you expect to get that indication.
Comment 4 John P. A. Verhaeg CLA 2003-11-14 09:30:48 EST
Thanks for reopening this.

As to an indication of the problem, two things come to mind:

- Either nothing should happen when I hit Ctrl-Space, which would be 
consistent with what happens when an import is missing or a Class name is 
misspelled, or

- Eclipse should attempt to auto-correct the method name, and if unable, pop-
up a menu containing available method names that are similar to the misspelled 
name.

Obviously the first would be the easiest, but I've had several occasions where 
auto-correction would have saved me some irritation.
Comment 5 Eclipse Genie CLA 2020-02-22 07:13:20 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.