Bug 24939

Summary: Code Assist doesn't find protected constructor for anonymous class
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Markus Keller CLA 2002-10-17 08:10:42 EDT
Action myAction= new Action(
                            ^ Content Assist here

... says "No completions available."
But in fact, (abstract) class Action has 3 protected constructors that should be
shown as Code Assist Proposals since they are accessible for anonymous inner
classes. The current behaviour gives no support for creating an Action as
anonymous inner class.

Note: The required proposals are listed when the following preference is
deactivated:
Preference > Java > Editor, Code Assist:
"Show only proposals visible in the invocation context."

Eclipse Version: 2.0
Build id: 200210161553
Comment 1 Martin Aeschlimann CLA 2002-10-21 04:03:24 EDT
Completions are collected using ICompletionRequestor.acceptAnonymousType

Moving to JCore
Comment 2 David Audel CLA 2002-10-30 10:37:21 EST
I changed the visibility rule for the anonymous type completion.

Fixed.
Comment 3 David Audel CLA 2002-11-13 05:28:38 EST
Verified.