[ 
http://issues.apache.org/jira/browse/OFBIZ-279?page=comments#action_12441444 ] 
            
Jacopo Cappellato commented on OFBIZ-279:
-----------------------------------------

What is the reason for doing this?

According to the Java API documentation:

http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#toURL()

it seems it should be changed to something like this instead:

file.toURI().toURL();

But again, it would be nice to get more information (from Adam Heath) about the 
resons for applying this patch.




> use file.getCanonicalFile() in fromFilename
> -------------------------------------------
>
>                 Key: OFBIZ-279
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-279
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Marco Risaliti
>         Assigned To: Jacques Le Roux
>            Priority: Trivial
>         Attachments: UtilURL[1].java.diff
>
>
> Copy of http://jira.undersunconsulting.com/browse/OFBIZ-379 from Adam Heath.
> =====================================================
> in UtilURL.fromFilename, call File.getCanonicalFile() before calling toURL(). 
>  

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

        

Reply via email to