Bug 15563

Summary: CompletionEngine does not report type packages of local variables
Product: [Eclipse Project] JDT Reporter: Andrew McCullough <mccull1>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew McCullough CLA 2002-05-08 13:58:59 EDT
BUILD: 05022002

While working on some code completion enhancements (bug 9100), I noticed that 
the completion engine does not report packages for local variables.  

Although I don't know for sure, I think this was put in to prevent NPE when the 
local var type has not been resolved (qualified name, no import).  Is there 
something more to this, or is the code below OK?  I have been running with 
the "fix" for a couple days now, and no ill effects so far :)

I added the following line: 

local.type == null ? NoChar : local.type.qualifiedPackageName(),

near line 2348 (I can't be sure I didn't change the line number, but just look 
for "requestor.acceptLocal"
Comment 1 David Audel CLA 2002-05-17 04:39:35 EDT
Your fix is good for me.

Fixed.