aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-07-16 08:02:27 +0000
committerKenneth Russel <[email protected]>2003-07-16 08:02:27 +0000
commit43a054cff3a5cded47522f40569eec6fdf79b2e6 (patch)
treec2bf748daa7b2f26c38424e5f5c1cb1b9f14a7b1
parente4c41409b1b9e108f80de50a1c2cc9830377c53c (diff)
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
-rw-r--r--src/net/java/games/jogl/impl/NativeLibLoader.java7
1 files changed, 7 insertions, 0 deletions
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;
}
});