From 43a054cff3a5cded47522f40569eec6fdf79b2e6 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 16 Jul 2003 08:02:27 +0000 Subject: Added workaround for 4845371 to NativeLibLoader. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@36 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/NativeLibLoader.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/net/java/games/jogl/impl/NativeLibLoader.java b/src/net/java/games/jogl/impl/NativeLibLoader.java index 75d7a5a5c..cf2b06939 100644 --- a/src/net/java/games/jogl/impl/NativeLibLoader.java +++ b/src/net/java/games/jogl/impl/NativeLibLoader.java @@ -58,6 +58,13 @@ public class NativeLibLoader { } } System.loadLibrary("jogl"); + + // Workaround for 4845371. + // Make sure the first reference to the JNI GetDirectBufferAddress is done + // from a privileged context so the VM's internal class lookups will succeed. + JAWT jawt = new JAWT(); + JAWTFactory.JAWT_GetAWT(jawt); + return null; } }); -- cgit v1.2.3