Community
Participate
Working Groups
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
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.