Summary: | DCR - JM - could ICompilationUnit::getType throw JME? (1GF9AL9) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | 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
2001-10-10 22:52:59 EDT
Is this one ok given the new validation for CU names ? 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. 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. PRODUCT VERSION: 122 |