From 90a29aef20d5be1b35c42f30a9a8bd3202a21fc2 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 15 Jun 2009 11:05:16 +0000 Subject: 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 --- .../classes/com/sun/nativewindow/impl/NWReflection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nativewindow/classes') 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"); } -- cgit v1.2.3