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

Bug 336620

Summary: [assist]No proposal for constructor context information when invoking code completion inside an anonymous abstract class's constructor
Product: [Eclipse Project] JDT Reporter: Remy Suen <remy.suen>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, anchakrk, cdtdoug, mauromol, shankhba, srikanth_sankaran
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Remy Suen CLA 2011-02-08 09:10:12 EST
I20110127-2034

1. Create the class below.
2. Invoke CC at the specified point.
3. Pick one of the constructors, instead of getting context information, you will get code completion instead.

I only get 'Test() Anonymous Inner Type' and 'Test(String s) Anonymous Inner Type' as code completion proposals. What I wanted are the 'Test() - Test' and 'Test(String s) - Test' ones for context information (which you would see if the class was _not_ abstract).

public abstract class Test {
  public Test() {}
  public Test(String s) {}

  void run() {
    new Test(/* CC here */) {
    };
  }
}
Comment 1 Srikanth Sankaran CLA 2014-10-23 11:43:03 EDT
Another test case is available at:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=446765#c32

No proposals at r.fail|
Comment 2 Eclipse Genie CLA 2020-05-22 13:18:49 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2022-05-14 14:48:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.