Bug 3531

Summary: NewClass(Interface)Wizard - shows not-visible types (1G4GNH3)
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P4    
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Erich Gamma CLA 2001-10-10 22:56:40 EDT
AK (11/15/00 4:16:04 PM)
	the NewClassWizard show all the classes as canditates for a superclass,
	and the same applies to superinterfaces (and to the NewInterfaceWizard) 
	
	should not show not visible types.

	as an example, create this:
	class A{
		private class B{}
	}
	and now use the wizard to create a class - when you ask for possible superclasses B is on the list too,
	although it's not visisible thus cannot be subclassed

NOTES:
Comment 1 Martin Aeschlimann CLA 2001-10-16 11:15:36 EDT
moved to 'active'
Comment 2 DJ Houghton CLA 2001-10-24 07:11:52 EDT
PRODUCT VERSION:
TestPass 15.11.2k

Comment 3 Erich Gamma CLA 2001-11-10 17:49:37 EST
not critical defer
Comment 4 Dirk Baeumer CLA 2002-07-25 08:23:20 EDT
Collecting all possible types is done via a special APi in Java Core which 
returns type references not real types. These type references don't have 
visibility information. Accessing the visibility information would resolve the 
actual IType which is much to expensive. So fixing this requires support from 
Core.

Moving to JDT Core for commenting. Please dispose if you don't provide support
Comment 5 Philipe Mulet CLA 2003-01-17 07:25:31 EST
Won't change, API wise this would be troublesome, plus some visibility check 
would need to be implemented to play the real accessibility rules.

Closing as won't fix.