From: megacz Date: Fri, 30 Jan 2004 08:04:27 +0000 (+0000) Subject: 2004/01/19 21:12:04 X-Git-Tag: RC3~126 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=8c8e7f9405ffc2e654aa9e2e10e4f9306b432d48 2004/01/19 21:12:04 darcs-hash:20040130080427-2ba56-d619a1a3e51f6fa45fa172cc0049c5d5c509a25c.gz --- diff --git a/src/org/xwt/Platform.java b/src/org/xwt/Platform.java index 976a142..2da2387 100644 --- a/src/org/xwt/Platform.java +++ b/src/org/xwt/Platform.java @@ -60,7 +60,11 @@ public abstract class Platform { } System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class); - if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance(); + try { + if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance(); + } catch (InstantiationException e) { + throw e.getCause(); + } String term = Platform.getEnv("TERM"); Log.color = term != null && term.length() != 0 && !term.equals("cygwin");