Bug 3309 - DCR - JM - could ICompilationUnit::getType throw JME? (1GF9AL9)
Summary: DCR - JM - could ICompilationUnit::getType throw JME? (1GF9AL9)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:52 EDT by Philipe Mulet CLA
Modified: 2002-01-11 09:04 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 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