Bug 336620 - [assist]No proposal for constructor context information when invoking code completion inside an anonymous abstract class's constructor
Summary: [assist]No proposal for constructor context information when invoking code co...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 09:10 EST by Remy Suen CLA
Modified: 2024-05-05 17:49 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 4 Eclipse Genie CLA 2024-05-05 17:49:42 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.