2004/01/19 21:12:04
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 08:04:27 +0000 (08:04 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 08:04:27 +0000 (08:04 +0000)
darcs-hash:20040130080427-2ba56-d619a1a3e51f6fa45fa172cc0049c5d5c509a25c.gz

src/org/xwt/Platform.java

index 976a142..2da2387 100644 (file)
@@ -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");