Bug 261315

Summary: [content assist] Should also consider constructors in LRU cache
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, numeralnathan, olejorgenb, pascal
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: fix candidate
Bug Depends on: 277691    
Bug Blocks: 387984    

Description Dani Megert CLA 2009-01-16 03:55:41 EST
Once bug 6930 is fixed our LRU cache for types becomes less used in case like:
  new <code assist>
because now we'll get constructor proposals and not type proposals. Therefore we should consider extending the LRU cache on constructors.
Comment 1 Dani Megert CLA 2011-04-12 05:35:04 EDT
*** Bug 340795 has been marked as a duplicate of this bug. ***
Comment 2 Dani Megert CLA 2012-08-27 06:50:57 EDT
*** Bug 387984 has been marked as a duplicate of this bug. ***
Comment 3 Deepak Azad CLA 2012-11-07 17:20:47 EST
*** Bug 393822 has been marked as a duplicate of this bug. ***
Comment 4 Markus Keller CLA 2012-11-09 09:34:07 EST
Note that the basic problem is bug 277691 (missing boosting of assignable types). LRU boosting should only be a secondary measure on top of the base relevance.

To those who requested not offering types that don't match the context at all: We won't do that, since the user may want to use a chained method invocation, e.g. completing
    	Process p = new Pro|
to
    	Process p = new ProcessBuilder(args).start();