Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-109

org.apache.xbean.classloader.JarFileClassLoader can not handle pathnames with containing spaces

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6
    • classloader
    • None
    • jdk1.6, Windows 2000 Latest version from SVN

    Description

      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.

      Attachments

        1. xbean.diff
          6 kB
          Ingo Renner

        Activity

          People

            xuhaihong Haihong Xu
            ingo Ingo Renner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: