Bug 19882

Summary: maybe a cu's single type can be its proimary type too
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 F3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-06-11 05:23:19 EDT
i think Primary Type is not anything defined in the spec (might be wrong but i 
could not locate it)

if it is only an eclipse thing, then
it's be very useful if its defintion could be extended with one more case:
if there's only 1 type declared in a cu, then it is the cu's the primary type

it does not conflict with what we have now and i think it's make sense
Comment 1 Philipe Mulet CLA 2002-06-11 07:14:34 EDT
I'd rather have it remain as it is currently. This API is here to find the type 
matching the unit name if any, not to find anything else. If a unit only 
contains one type with a non-matching type name, then this type is a secondary 
one, which means lookups may fail depending on the compilation order etc...

Closing, no action.