Bug 24939 - Code Assist doesn't find protected constructor for anonymous class
Summary: Code Assist doesn't find protected constructor for anonymous class
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: 2.1 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-17 08:10 EDT by Markus Keller CLA
Modified: 2002-11-13 05:28 EST (History)
0 users

See Also:


Attachments

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