summaryrefslogtreecommitdiffstats
path: root/make/jawt-CustomJavaCode.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-06-15 22:52:34 +0000
committerKenneth Russel <[email protected]>2009-06-15 22:52:34 +0000
commit506b634b780dcd23aa61015c2ceba3e687196abf (patch)
tree897649a36cc769351704a050828f8e0e994c5686 /make/jawt-CustomJavaCode.java
parent04c0c10bfee764dbd0301ae83a0fae695dcb5b23 (diff)
Deleted obsolete source code in preparation for copying JOGL_2_SANDBOX
on to trunk git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1958 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/jawt-CustomJavaCode.java')
-rwxr-xr-xmake/jawt-CustomJavaCode.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/make/jawt-CustomJavaCode.java b/make/jawt-CustomJavaCode.java
deleted file mode 100755
index 7e8e83b39..000000000
--- a/make/jawt-CustomJavaCode.java
+++ /dev/null
@@ -1,27 +0,0 @@
-private static volatile JAWT jawt;
-
-/** Helper routine for all users to call to access the JAWT. */
-public static JAWT getJAWT() {
- if (jawt == null) {
- synchronized (JAWT.class) {
- if (jawt == null) {
- NativeLibLoader.loadAWTImpl();
- // 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.
- AccessController.doPrivileged(new PrivilegedAction() {
- public Object run() {
- JAWT j = JAWT.create();
- j.version(JAWTFactory.JAWT_VERSION_1_4);
- if (!JAWTFactory.JAWT_GetAWT(j)) {
- throw new RuntimeException("Unable to initialize JAWT");
- }
- jawt = j;
- return null;
- }
- });
- }
- }
- }
- return jawt;
-}