Bug 262605 - [content assist] ANONYMOUS_CLASS_DECLARATION proposal should support TYPE_REF as required proposals
Summary: [content assist] ANONYMOUS_CLASS_DECLARATION proposal should support TYPE_REF...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 260717
Blocks:
  Show dependency tree
 
Reported: 2009-01-27 12:21 EST by David Audel CLA
Modified: 2009-02-20 10:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.