diff options
author | Sven Gothel <[email protected]> | 2009-06-15 11:05:16 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-19 00:40:25 +0200 |
commit | 5fa993c74741ebb42301028df5572c8aad2f8107 (patch) | |
tree | a30afc56ce0f2f7cae42149e45c2925f337779eb /src/nativewindow/classes/com/sun | |
parent | 9bb10d5ae27d2276ebf7710d9d8ea73d09c52294 (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/nativewindow/classes/com/sun')
-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"); } |