Community
Participate
Working Groups
I20060620-1010 IJavaModel#getJavaProject(String) throws an IllegalArgumentException for an invalid project name, see IWorkspaceRoot#getProject(String). #getJavaProject() should either repeat the constraints on the name, or it should accept any name. Steps to reproduce: - open Run... dialog - doubleclick "Junit Plug-in Test" - select second radio button "Run all tests..." The empty launch configuration is a bug in debug (fixed in HEAD). I've added a check to avoid the issue in JDT/UI HEAD.
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