aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-28 19:03:32 -0700
committersg215889 <[email protected]>2009-07-28 19:03:32 -0700
commit4b5e1a0f826597d8cdcf81865194ee8d67511b70 (patch)
tree33c7394f6a11fcde8ce59035f94f680e1d2d3861 /src/nativewindow/classes
parent0a92a47567cfa36b33590bacf4c782c0ec4f9eaf (diff)
Cleanup ..
Diffstat (limited to 'src/nativewindow/classes')
-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 d054c205b..b13cf4317 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);
}
}