[Libreoffice-commits] .: jurt/test

Julien Nabet serval2412 at kemper.freedesktop.org
Mon May 2 13:44:53 PDT 2011


 jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 55edd4058251c1bc5528e09151026cd9229d92a7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon May 2 22:40:58 2011 +0200

    Change <file>.toURL() to <file>.toURI().toURL()

diff --git a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
index 723d2e0..6c5ca06 100644
--- a/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
+++ b/jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test.java
@@ -42,7 +42,7 @@ public final class NativeLibraryLoader_Test extends ComplexTestCase {
         File subdir = new File(dir, "with space");
         File file1 = new File(subdir, "file");
 
-        String fileUrl = dir.toURL().toString();
+        String fileUrl = dir.toURI().toURL().toString();
         if (!fileUrl.endsWith("/")) {
             fileUrl += "/";
         }
@@ -64,7 +64,7 @@ public final class NativeLibraryLoader_Test extends ComplexTestCase {
         File subdir = new File(dir, "with space");
         File file1 = new File(subdir, "file");
 
-        String fileUrl = dir.toURL().toString();
+        String fileUrl = dir.toURI().toURL().toString();
         if (!fileUrl.endsWith("/")) {
             fileUrl += "/";
         }


More information about the Libreoffice-commits mailing list