summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
diff options
context:
space:
mode:
authorSteve Northover <steve>2008-12-16 20:21:51 +0000
committerSteve Northover <steve>2008-12-16 20:21:51 +0000
commit00a45bd37c77c0a31fa076d1c3253b47ceaf4eda (patch)
treeeaa04b1d06cc736b1b730ffda74f2390fae7a527 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
parent8b7f95f1e29b562545acdd17eeba000f72f8f082 (diff)
downloadeclipse.platform.swt-00a45bd37c77c0a31fa076d1c3253b47ceaf4eda.tar.gz
eclipse.platform.swt-00a45bd37c77c0a31fa076d1c3253b47ceaf4eda.tar.xz
eclipse.platform.swt-00a45bd37c77c0a31fa076d1c3253b47ceaf4eda.zip
258534 - Device static initialization swallows exceptions [was: Replace static blocks with lazy initialization holder class idiom]
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
index baa1209646..31dabd5baf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
@@ -92,15 +92,13 @@ public abstract class Device implements Drawable {
* fix is to remove this feature. Unfortunately,
* too many application programs rely on this
* feature.
- *
- * This code will be removed in the future.
*/
protected static Device CurrentDevice;
protected static Runnable DeviceFinder;
static {
try {
Class.forName ("org.eclipse.swt.widgets.Display");
- } catch (Throwable e) {}
+ } catch (ClassNotFoundException e) {}
}
/*