summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-03 22:55:31 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-03 22:55:31 +0200
commit2be3b8bd883ce2df2f1a9edce6292ad749d96fd4 (patch)
treef2c43c4e854893edd816ddbf21e117e3dd537bb9
parentc7708416213ecc8848dbd33e78e34a4dc514a2fd (diff)
Change <file>.toURL() to <file>.toURI().toURL()
-rw-r--r--accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java2
-rw-r--r--bean/test/applet/oooapplet/OOoViewer.java4
-rw-r--r--forms/qa/integration/forms/ListSelection.java2
-rw-r--r--forms/qa/integration/forms/XMLFormSettings.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java b/accessibility/workben/org/openoffice/accessibility/awb/HelpWindow.java
index 2f9671d191e5..aea73ec93960 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 c7c96b6a0ab8..fbdcf714b0ca 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 17026c09906e..32ef4e96860c 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 e3881bfa861d..17bbd5a35b95 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[] {} );