Summary: | Javadoc for IJavaProject.findType(String ) is not consistant | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Sébastien Gandon <sgandon> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | trivial | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Sébastien Gandon
2005-05-20 05:48:42 EDT
Both are right. 'this element' refers to the project. So if the project doesn't exist, a JavaModelException is thrown. If the project exists, and the type is not found, null is returned. If the type is found, it is returned. Would changing the spec to 'JavaModelException if this project does not exist' clarify things ? yes very much, thanks for your answer. SeB. Changed the @exception spec of IJavaProject#findType(...), findPackageFragment(...), and findPackageFragmentRoot(...) to: @exception JavaModelException if this project does not exist [...] Verified in i20050527-0010 |