From 2e80e7e60a48d3121feb20a237df304b2bf834d4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 1 Dec 2011 20:18:27 +0100 Subject: TempJarCache/JNILibLoaderBase: Identify the Jar files by their URL within our lifecycle. JarFile's hash almost always differs. --- src/java/com/jogamp/common/os/Platform.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/java/com/jogamp/common/os') diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java index f4bd6c1..af795d1 100644 --- a/src/java/com/jogamp/common/os/Platform.java +++ b/src/java/com/jogamp/common/os/Platform.java @@ -309,8 +309,7 @@ public class Platform { final URL jarUrlRoot = JarUtil.getURLDirname( JarUtil.getJarSubURL(Platform.class.getName(), cl) ); final URL nativeJarURL = JarUtil.getJarFileURL(jarUrlRoot, nativeJarName); - final JarFile nativeJar = JarUtil.getJarFile(nativeJarURL, cl); - TempJarCache.bootstrapNativeLib(Platform.class, libBaseName, nativeJar); + TempJarCache.bootstrapNativeLib(Platform.class, libBaseName, nativeJarURL, cl); } catch (IOException ioe) { ioe.printStackTrace(); } -- cgit v1.2.3