Kaydet (Commit) 77fb64eb authored tarafından Noel Grandin's avatar Noel Grandin

connectivity: remove pre-Java1.5 workaround

Change-Id: Ie35a308d012e75e3aa73dc81d06f0a39a881760b
üst 34bcf9b4
......@@ -58,16 +58,7 @@ final class NativeLibraries {
URL url = ((URLClassLoader) cl).findResource(sysname);
if (url != null) {
try {
System.load(
File.class.getConstructor(
new Class[] {
ClassLoader.getSystemClassLoader().
loadClass("java.net.URI") }).
newInstance(
new Object[] {
URL.class.getMethod("toURI", new Class[0]).
invoke(url, (java.lang.Object[])null) }).
getAbsolutePath());
System.load(new File(url.toURI()).getAbsolutePath());
} catch (Throwable t) {
throw new UnsatisfiedLinkError(
e.toString()+ " - " + t.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment