diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 08:24:13 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-19 00:55:58 +0200 |
commit | 6c3bb4a8c703012e8514fcea0c0a6ec9826178f6 (patch) | |
tree | 8c088621ceccf9f6a90d1dab9c26ca005453caf7 | |
parent | 2175445b0462859de678309c04a74f0bf67be42d (diff) |
Changed a few Class.forName() calls to defer initialization to avoid eager initialization of the AWT, in particular on Mac OS X, where doing so was causing crashes during Newt initialization
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1953 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r-- | src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java index 89b6201..99c8547 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java @@ -44,7 +44,7 @@ public final class NWReflection { public static final boolean isClassAvailable(String clazzName) { try { - Class clazz = Class.forName(clazzName); + Class clazz = Class.forName(clazzName, false, NWReflection.class.getClassLoader()); return null!=clazz; } catch (Throwable e) { } return false; @@ -52,7 +52,7 @@ public final class NWReflection { public static final Class getClass(String clazzName) { try { - return Class.forName(clazzName); + return Class.forName(clazzName, false, NWReflection.class.getClassLoader()); } catch (Throwable e) { } return null; } @@ -62,7 +62,7 @@ public final class NWReflection { Constructor factory = null; try { - factoryClass = Class.forName(clazzName); + factoryClass = getClass(clazzName); if (factoryClass == null) { throw new NativeWindowException(clazzName + " not available"); } |