Bug 262605

Summary: [content assist] ANONYMOUS_CLASS_DECLARATION proposal should support TYPE_REF as required proposals
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: TextAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: daniel_megert
Version: 3.5   
Target Milestone: 3.5 M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 260717    
Bug Blocks:    

Description David Audel CLA 2009-01-27 12:21:15 EST
build I20090126-1300

With the fix for bug 260717 ANONYMOUS_CLASS_DECLARATION proposals can have a TYPE_REF proposal as required proposals when a constructor is completed and the type is not imported

package missing;
public class MissingType {
  public MissingType(int i) {}
}

package test;
public class Test{
  void foo() {
    new MissingType(| // do ctrl+space at |
  }
}

In this case a METHOD_REF and ANONYMOUS_CLASS_DECLARATION with a TYPE_REF as required proposal can be proposed but JDTText does not support that for ANONYMOUS_CLASS_DECLARATION. So only the METHOD_REF are displayed to the user.

JDTText should add the support for ANONYMOUS_CLASS_DECLARATION.
Comment 1 Dani Megert CLA 2009-02-20 10:16:20 EST
Fixed in HEAD.
Available in build > N20090219-2000.