Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 74599

Summary: [assist] code assist should suggest classes for unknown type
Product: [Eclipse Project] JDT Reporter: Dan Allen <dan.j.allen>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED DUPLICATE QA Contact:
Severity: trivial    
Priority: P3 CC: jerome_lanneluc
Version: 3.0   
Target Milestone: 3.4 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Dan Allen CLA 2004-09-22 12:20:17 EDT
When I am coding rather quickly, I get ahead of Eclipse by introducing types it
does not yet know about.  However, I have to interrupt my typing to update the
unknown types as soon as I need to include a method on which I need assistance.
 For instance, I might type

private static final Log log = LogFactory.

at this point Eclipse is underlining Log and LogFactory and cannot provide me
with assistance for methods and types on LogFactory.  I would expect Eclipse to
prompt me to qualify the LogFactory class at this point, knowing that next I
will be searching for a method.  Instead Eclipse just sits there, looking confused.

Now, if I were to type

private static final Log log = LogFactory

and then spawn the code assist with CTRL-Enter, I do get the prompt for the
qualification of the LogFactory class.  Once that is done, I can then enter the
"." (dot) and Eclipse will bring up known methods and types.  It would just be
nice if Eclipse was proactive here and prompted for both without needing to
specifically hit CTRL-Enter.
Comment 1 Dani Megert CLA 2004-09-23 03:31:34 EDT

*** This bug has been marked as a duplicate of 44984 ***
Comment 2 Frederic Fusier CLA 2006-10-30 11:07:05 EST
Reopen as while verifying bug 44984, comment 0 test case still get no proposal.
Comment 3 Frederic Fusier CLA 2006-10-30 11:08:44 EST
David confirms that bug 44984 fix does not handle static calls which still need some extra work...
Comment 4 Frederic Fusier CLA 2006-10-30 11:34:55 EST
Set as duplicate of original bug 44627 on static calls...


*** This bug has been marked as a duplicate of 44627 ***
Comment 5 Jerome Lanneluc CLA 2007-10-29 06:09:42 EDT
Verified for 3.4M3 using I20071029-0010