Bug 78270 - content assist doesn't propose Map.Entry
Summary: content assist doesn't propose Map.Entry
Status: RESOLVED DUPLICATE of bug 94965
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-10 05:27 EST by Markus Keller CLA
Modified: 2005-08-18 09:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-11-10 05:27:48 EST
I200411091436

Content assist should also propose nested types like 'java.util.Map.Entry' when
asked to complete 'Entry'.

Test case:

import java.util.HashMap;
import java.util.Iterator;

public class User {
  void m() {
    HashMap map= new HashMap();
    for (Iterator iter= map.entrySet().iterator(); iter.hasNext();) {
      Entry/* caret_here */
    }
  }
}
Comment 1 David Audel CLA 2004-11-10 12:23:27 EST
This behavior is the expected behavior.
All members (types, methods and fields) are only proposed if the qualifier is
already in the source.

change severity to enhancement.
Comment 2 David Audel CLA 2005-04-07 06:16:52 EDT
Defer post 3.1
Comment 3 Markus Keller CLA 2005-08-18 06:28:26 EDT
Works for me in 3.1.
Comment 4 David Audel CLA 2005-08-18 09:30:23 EDT
reopened to be closed as duplicate
Comment 5 David Audel CLA 2005-08-18 09:30:52 EDT

*** This bug has been marked as a duplicate of 94965 ***