Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Peter Gromov
Subsystem
Java. Code Completion
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Martin Fuhrer
    4 years ago (19 Oct 2007 11:34)
  • Updated by   root
    2 years ago (17 Jan 2010 20:54)
  • Jira: IDEADEV-22738
    (history, comments)
 
IDEA-41576 Wrong (?) method completion behavior
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Consider this situation:
  • there's a variable of type java.util.Map named myMap;
  • the method completion popup has been invoked after typing 'myMap.';
  • the method 'putAll' is selected.

There's a significant different behavior when typing 'put(' in this situation:

IDEA 6.0 & IDEA 7.0M2:
  • after typing 'p' the list is narrowed to 'put' and 'putAll';
  • after typing 't' the method 'put' is selected;
  • arter typing '(' the popup is closed and the method 'put' is inserted.

IDEA 7.0:
  • after typing 'p' the list is narrowed to 'put' and 'putAll';
  • arter typing '(' the popup is closed and the method 'putAll' is inserted.

The big problem here is that before I was able to type 'myMap.put(' even with a code completion popup timeout of 0ms. But now when typing the same I end up with 'myMap.putAll()' in my code.

(I even wasn't aware that typing an opening brace triggers code completion, as it always behaved correctly before.)

Issue was closed
Comments (3)
 
History
 
Linked Issues (?)
 
Taras Tielkes
  Taras Tielkes
19 Oct 2007 19:23
4 years ago
Sounds similar to this discussion: IDEA-41203
Martin Fuhrer
  Martin Fuhrer
19 Oct 2007 19:28
4 years ago
Yes, it sounds very similar, just with the difference that the issue here isn't fixed... :)
The behavior I'm describing is not related to getters/setters, the same applies also for e.g. notify and notifyAll.
Peter Gromov
  Peter Gromov
19 Oct 2007 20:09
4 years ago
No, this is completely different problem