summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/NewtFactory.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/newt/classes/com/jogamp/newt/NewtFactory.java b/src/newt/classes/com/jogamp/newt/NewtFactory.java
index f551fcc83..82f74e370 100644
--- a/src/newt/classes/com/jogamp/newt/NewtFactory.java
+++ b/src/newt/classes/com/jogamp/newt/NewtFactory.java
@@ -58,11 +58,16 @@ public class NewtFactory {
public static Class<?> getCustomClass(String packageName, String classBaseName) {
Class<?> clazz = null;
- if(packageName!=null || classBaseName!=null) {
- String clazzName = packageName + "." + classBaseName ;
+ if(packageName!=null && classBaseName!=null) {
+ final String clazzName = packageName + "." + classBaseName ;
try {
clazz = Class.forName(clazzName);
- } catch (Throwable t) {}
+ } catch (Throwable t) {
+ System.err.println("Warning: Failed to find class <"+clazzName+">: "+t.getMessage());
+ if(DEBUG_IMPLEMENTATION) {
+ t.printStackTrace();
+ }
+ }
}
return clazz;
}