Bug 3309

Summary: DCR - JM - could ICompilationUnit::getType throw JME? (1GF9AL9)
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Philipe Mulet CLA 2001-10-10 22:52:59 EDT
AK (6/13/01 1:10:23 PM)
	we've had many, many problems comming from the fact that ICompilationUnit::getType explodes on names with dots in them
	could it maybe throw a JavaModelException in those cases?
	or return a not-existing type?

NOTES:
Comment 1 Philipe Mulet CLA 2001-10-12 07:27:38 EDT
Is this one ok given the new validation for CU names ?
Comment 2 Olivier Thomann CLA 2001-10-12 10:23:47 EDT
No. The API should specify that the name has to be a valid compilation unit 
name. If we want to throw a JavaModelException, we should specify it in the API 
as well. This is an API doc change. 
Comment 3 Olivier Thomann CLA 2001-10-16 11:28:10 EDT
Fixed in head. The javadoc now reflects the right usage of the getType(String ) 
method. This method is not supposed to be used with an illegal compilation unit 
name. A name with a dot is illegal.
Comment 4 DJ Houghton CLA 2001-10-29 17:08:30 EST
PRODUCT VERSION:
122