Bug 19882 - maybe a cu's single type can be its proimary type too
Summary: maybe a cu's single type can be its proimary type too
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-11 05:23 EDT by Adam Kiezun CLA
Modified: 2002-06-11 07:14 EDT (History)
0 users

See Also:


Attachments

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