Bug 3531 - NewClass(Interface)Wizard - shows not-visible types (1G4GNH3)
Summary: NewClass(Interface)Wizard - shows not-visible types (1G4GNH3)
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P4 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:56 EDT by Erich Gamma CLA
Modified: 2003-01-17 07:25 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 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.