summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com/sun
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-28 19:03:32 -0700
committerSven Gothel <[email protected]>2010-04-19 00:43:08 +0200
commitfe70cf568861e4addd8eb9a73f9832e7efaacaa5 (patch)
treea30afc56ce0f2f7cae42149e45c2925f337779eb /src/nativewindow/classes/com/sun
parentd795085a5f8f69507aa18cb15265c158ebbb83cf (diff)
Cleanup ..
Diffstat (limited to 'src/nativewindow/classes/com/sun')
-rw-r--r--src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
index d054c20..b13cf43 100644
--- a/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
+++ b/src/nativewindow/classes/com/sun/nativewindow/impl/NWReflection.java
@@ -40,7 +40,7 @@ import java.lang.reflect.*;
import javax.media.nativewindow.*;
public final class NWReflection {
- public static final boolean DEBUG = true; /* Debug.debug("NWReflection"); */
+ public static final boolean DEBUG = Debug.debug("NWReflection");
public static final boolean isClassAvailable(String clazzName) {
try {
@@ -69,11 +69,7 @@ public final class NWReflection {
try {
factory = factoryClass.getDeclaredConstructor( cstrArgTypes );
} catch(NoSuchMethodException nsme) {
- nsme.printStackTrace();
- throw new NativeWindowException("Constructor: '" + clazzName + "("+cstrArgTypes+")' not found");
- } catch (Throwable th) {
- th.printStackTrace();
- throw new NativeWindowException(th);
+ throw new NativeWindowException("Constructor: '" + clazzName + "("+cstrArgTypes+")' not found");
}
return factory;
} catch (Throwable e) {
@@ -95,9 +91,6 @@ public final class NWReflection {
factory = getConstructor(clazzName, cstrArgTypes);
return factory.newInstance( cstrArgs ) ;
} catch (Exception e) {
- if (DEBUG) {
- e.printStackTrace();
- }
throw new NativeWindowException(e);
}
}