[ http://jira.codehaus.org/browse/SUREFIRE-46?page=comments#action_66968 ] 

Balaji Ravi commented on SUREFIRE-46:
-------------------------------------

I have attached a test case for this bug. The problem is that the URL's being 
put in to the URLClassLoader have spaces in them & when the RMIClassLoader or 
something else uses a StringTokenizer to get the URL's, it splits them because 
of the spaces in to 2 urls...

Ideally, when putting the URL's in the classloader, we should properly escape 
it. It is a bug in File.toURL method & sun has recognized that & because of 
some compatibility issues, they have provided a workaround to use 
File.toURI().toURL();

Hope this helps...

> Proper escape of classpath entries esp. in windows
> --------------------------------------------------
>
>          Key: SUREFIRE-46
>          URL: http://jira.codehaus.org/browse/SUREFIRE-46
>      Project: surefire
>         Type: Bug

>     Versions: 2.0
>  Environment: Windows
>     Reporter: Balaji Ravi
>  Attachments: surefire-booter.patch
>
>
> When a classpath entry has a directory with spaces, surefire booter class 
> doesn't properly create the URL. i.e. it doesn't escape the url's added.
> I have attached a patch that would fix this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to