Summary: | [spec] IJavaModel#getJavaProject(String) throws IAE for invalid name | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | CC: | jerome_lanneluc, Olivier_Thomann | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.5 M1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2006-06-26 11:16:19 EDT
I cannot reproduce the problem using 3.3 RC4 following the described scenario. I meant that there no IAE when I followed the comment 0 scenario. Of course, feel free to reopen if you still think that IJavaModel#getJavaProject(String) should not throw an IllegalArgumentException for an invalid project name... > I've added a check to avoid the issue in JDT/UI HEAD.
That fix avoids the problem in HEAD, but the method still throws an exception without declaring when. I think you should just copy the Javadoc from IWorkspaceRoot.getProject(String):
* The given name must be a valid
* path segment as defined by {@link IPath#isValidSegment(String)}.
Deferring post 3.4 Created attachment 104682 [details]
Proposed change
Change released for 3.5M1 Verified for 3.5M1 using I20080805-1307 |