[Libreoffice-commits] .: accessibility/workben bean/test forms/qa
Julien Nabet
serval2412 at kemper.freedesktop.org
Tue May 3 13:56:15 PDT 2011
accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java | 2 +-
bean/test/applet/oooapplet/OOoViewer.java | 4 ++--
forms/qa/integration/forms/ListSelection.java | 2 +-
forms/qa/integration/forms/XMLFormSettings.java | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit abac1408e20fd2c029720167c528cfc1694efb11
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue May 3 22:55:31 2011 +0200
Change <file>.toURL() to <file>.toURI().toURL()
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java b/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java
index 9aae024..c344812 100644
--- a/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java
+++ b/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java
@@ -32,7 +32,7 @@ public class HelpWindow
File aFile = new File (sFilename);
try
{
- loadURL (aFile.toURL());
+ loadURL (aFile.toURI().toURL());
}
catch (MalformedURLException e)
{
diff --git a/bean/test/applet/oooapplet/OOoViewer.java b/bean/test/applet/oooapplet/OOoViewer.java
index 8139b9f..ba516c7 100644
--- a/bean/test/applet/oooapplet/OOoViewer.java
+++ b/bean/test/applet/oooapplet/OOoViewer.java
@@ -53,7 +53,7 @@ public class OOoViewer extends Applet {
System.setProperty("sun.awt.xembedserver", "true");
File f = new File(s);
- URL url = f.toURL();
+ URL url = f.toURI().toURL();
String officeURL = url.toString();
URL[] arURL = new URL[] {
new URL(officeURL + "/program/classes/officebean.jar"),
@@ -65,7 +65,7 @@ public class OOoViewer extends Applet {
};
m_loader = new CustomURLClassLoader(arURL);
File fileProg = new File(s + "/program");
- m_loader.addResourcePath(fileProg.toURL());
+ m_loader.addResourcePath(fileProg.toURI().toURL());
}
} catch (MalformedURLException e) {
e.printStackTrace();
diff --git a/forms/qa/integration/forms/ListSelection.java b/forms/qa/integration/forms/ListSelection.java
index fb5831a..cd798f4 100644
--- a/forms/qa/integration/forms/ListSelection.java
+++ b/forms/qa/integration/forms/ListSelection.java
@@ -271,7 +271,7 @@ public class ListSelection extends integration.forms.TestCase
{
XStorable storable = (XStorable)m_document.query( XStorable.class );
java.io.File testFile = java.io.File.createTempFile( getTestObjectName(),".ods");
- storable.storeAsURL( testFile.getAbsoluteFile().toURL().toString(), new com.sun.star.beans.PropertyValue[]{} );
+ storable.storeAsURL( testFile.getAbsoluteFile().toURI().toURL().toString(), new com.sun.star.beans.PropertyValue[]{} );
testFile.deleteOnExit();
}
catch( java.lang.Throwable e )
diff --git a/forms/qa/integration/forms/XMLFormSettings.java b/forms/qa/integration/forms/XMLFormSettings.java
index c8b28d3..d92cd2c 100644
--- a/forms/qa/integration/forms/XMLFormSettings.java
+++ b/forms/qa/integration/forms/XMLFormSettings.java
@@ -112,7 +112,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
// store the document
File tempFile = File.createTempFile( "xmlforms", ".odt" );
tempFile.deleteOnExit();
- String fileURL = tempFile.toURL().toExternalForm();
+ String fileURL = tempFile.toURI().toURL().toExternalForm();
XStorable store = (XStorable)UnoRuntime.queryInterface( XStorable.class,
m_document.getDocument() );
store.storeAsURL( fileURL, new PropertyValue[] {} );
More information about the Libreoffice-commits
mailing list