Bug 270113 - [code assist] Missing ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION proposal
Summary: [code assist] Missing ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION proposal
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 07:35 EDT by Dani Megert CLA
Modified: 2009-04-28 03:50 EDT (History)
3 users (show)

See Also:


Attachments
Proposed fix (3.74 KB, patch)
2009-03-27 05:00 EDT, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2009-03-26 07:35:28 EDT
I20090317-1745.

1. paste:
package xy;
public class Try {
    private void foo() {
        new AbstractC
    }
}


2. do content assist after "new AbstractC"
==> ANONYMOUS_CLASS_CONSTRUCTOR_INVOCATION proposal for AbstractCollection is missing
Comment 1 David Audel CLA 2009-03-27 05:00:48 EDT
Created attachment 130069 [details]
Proposed fix

The constructor of AbstractCollection is 'protected' and must not be filtered by visibility check.
Comment 2 David Audel CLA 2009-03-27 05:02:50 EDT
Released for 3.5M7.

Test added
  CompletionTest2#testBug270113_01()
Comment 3 Srikanth Sankaran CLA 2009-04-28 03:50:43 EDT
Verified for 3.5M7 using I20090426-2000