diff options
author | Sven Gothel <[email protected]> | 2009-06-15 11:05:16 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-19 00:55:58 +0200 |
commit | 90a29aef20d5be1b35c42f30a9a8bd3202a21fc2 (patch) | |
tree | bbab670f6332a5d1600a3760b3ad6dbbfc734616 /src | |
parent | 6c3bb4a8c703012e8514fcea0c0a6ec9826178f6 (diff) |
Fix: JAWTUtil has to JAWTNativeLibLoader.loadAWTImpl() as well. Use NWReflection.isClassAvailable() if possible. NWReflection.getClass() takes boolean init.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1956 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-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 99c8547..b13cf43 100644 --- a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java +++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java @@ -50,9 +50,9 @@ public final class NWReflection { return false; } - public static final Class getClass(String clazzName) { + public static final Class getClass(String clazzName, boolean initialize) { try { - return Class.forName(clazzName, false, NWReflection.class.getClassLoader()); + return Class.forName(clazzName, initialize, NWReflection.class.getClassLoader()); } catch (Throwable e) { } return null; } @@ -62,7 +62,7 @@ public final class NWReflection { Constructor factory = null; try { - factoryClass = getClass(clazzName); + factoryClass = getClass(clazzName, true); if (factoryClass == null) { throw new NativeWindowException(clazzName + " not available"); } |