geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingo Bormann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (XBEAN-109) org.apache.xbean.classloader.JarFileClassLoader can not handle pathnames with containing spaces
Date Fri, 01 Aug 2008 16:26:33 GMT

     [ https://issues.apache.org/jira/browse/XBEAN-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ingo Bormann updated XBEAN-109:
-------------------------------

    Attachment: xbean.diff

This is a diff between the head of SVN and my modified version. You will find that File.toURL()
is replaced by File.toURI().toURL() in a couple of places. Should not be too hard to apply.

>  org.apache.xbean.classloader.JarFileClassLoader can not handle pathnames with containing
spaces
> ------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-109
>                 URL: https://issues.apache.org/jira/browse/XBEAN-109
>             Project: XBean
>          Issue Type: Bug
>          Components: classloader
>         Environment: jdk1.6, Windows 2000 Latest version from SVN
>            Reporter: Ingo Bormann
>         Attachments: xbean.diff
>
>
> A lot of classes in the package org.apache.xbean.classloader use File.toURL() instead
of File.toURI().toURL(). File.toURL() is deprecated and does not work on windows with pathnames
containing spaces. If a pathname contains spaces then File.toURL() does not convert spaces
correctly. Javadoc recommends to use File.toURI().toURL() instead.
> I have a patched version where this is fixed for the full package org.apache.xbean.classloader.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message