Skip to content
Snippets Groups Projects
Verified Commit 70b87f22 authored by Fredrik Roubert's avatar Fredrik Roubert
Browse files

ITS#4501 Replace call to deprecated File.toURL() method.

JDK 6 deprecated File.toURL() in favour of File.toURI().toURL() because
it does not automatically escape characters that are illegal in URLs.
parent f494f56d
No related branches found
No related tags found
1 merge request!6ITS#4501 Update code base to Java8.
...@@ -146,7 +146,7 @@ public class JdbcLdapBrowser { ...@@ -146,7 +146,7 @@ public class JdbcLdapBrowser {
for (int i=0;i<children.length;i++) { for (int i=0;i<children.length;i++) {
try { try {
urls[i] = children[i].toURL(); urls[i] = children[i].toURI().toURL();
} catch (MalformedURLException e2) { } catch (MalformedURLException e2) {
MessageDialog.openError(Display.getCurrent().getActiveShell(),"Could not load drivers",e2.toString()); MessageDialog.openError(Display.getCurrent().getActiveShell(),"Could not load drivers",e2.toString());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment