diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 23:02:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-03 23:02:44 +0200 |
commit | 3b8b6cef107bdf209e6258c5bb4d51e880f6ecf6 (patch) | |
tree | 1bdf5d3cc9366d865d42423194a7eda224a13515 /odk/source/com | |
parent | b945adac81c3b38d32ccc7d60f3d99fedd86a30f (diff) |
Change <file>.toURL() to <file>.toURI().toURL()
Diffstat (limited to 'odk/source/com')
-rw-r--r-- | odk/source/com/sun/star/lib/loader/Loader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/source/com/sun/star/lib/loader/Loader.java b/odk/source/com/sun/star/lib/loader/Loader.java index c4ef7fee6e81..cc2242a9fe31 100644 --- a/odk/source/com/sun/star/lib/loader/Loader.java +++ b/odk/source/com/sun/star/lib/loader/Loader.java @@ -178,7 +178,7 @@ public final class Loader { if ( fJuh.exists() ) { URL[] clurls = new URL[1]; try { - clurls[0] = fJuh.toURL(); + clurls[0] = fJuh.toURI().toURL(); ClassLoader cl = new CustomURLClassLoader( clurls ); Class c = cl.loadClass( "com.sun.star.comp.helper.UnoInfo" ); @@ -237,7 +237,7 @@ public final class Loader { StringTokenizer tokens = new StringTokenizer( data, delimiter ); while ( tokens.hasMoreTokens() ) { try { - urls.add( new File( tokens.nextToken() ).toURL() ); + urls.add( new File( tokens.nextToken() ).toURI().toURL() ); } catch ( MalformedURLException e ) { // don't add this class path entry to the list of class loader // URLs |