From a338d1c94617f923609619d4edde7e1b1084cad5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 13 May 2012 22:51:30 +0200 Subject: Refine commit be7cac1713b166ca6578c685ec8a7231a8429919: Throw ClassNotFoundException in Display/Screen/Window factory if neither custom nor default class is available. Suppress Warning of non existing custom class (in non DEBUG mode), rely on later ClassNotFoundException (see above). --- src/newt/classes/com/jogamp/newt/NewtFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/NewtFactory.java b/src/newt/classes/com/jogamp/newt/NewtFactory.java index 82f74e370..61dbfb34c 100644 --- a/src/newt/classes/com/jogamp/newt/NewtFactory.java +++ b/src/newt/classes/com/jogamp/newt/NewtFactory.java @@ -63,8 +63,8 @@ public class NewtFactory { try { clazz = Class.forName(clazzName); } catch (Throwable t) { - System.err.println("Warning: Failed to find class <"+clazzName+">: "+t.getMessage()); if(DEBUG_IMPLEMENTATION) { + System.err.println("Warning: Failed to find class <"+clazzName+">: "+t.getMessage()); t.printStackTrace(); } } -- cgit v1.2.3