Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2019-11-09 19:24:49 +0000
committerJonah Graham2019-11-09 19:26:25 +0000
commitd0dfdb200ded1e92f386a5b2d28c6bda4b05d716 (patch)
tree9f415b5e7cc9ff83a02969b526898d1521258238
parent3050b11cb38dc431a032f3be0fa84a23c0c6346c (diff)
downloadeclipse.platform.swt-d0dfdb200ded1e92f386a5b2d28c6bda4b05d716.tar.gz
eclipse.platform.swt-d0dfdb200ded1e92f386a5b2d28c6bda4b05d716.tar.xz
eclipse.platform.swt-d0dfdb200ded1e92f386a5b2d28c6bda4b05d716.zip
Bug 552716: Remove overly pessimistic assertion
onNameLostCallback can be called in some situations when dbus / webkit is not properly initialized on the system. Removing this assertion means that downstream projects can use -ea when running tests without being hit by SWT's assertion. Change-Id: I4c06369f90cd8474a68b8c9a3daecc2920f4f249 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
index 64aa8a5bcc..b16d206756 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebkitGDBus.java
@@ -233,7 +233,6 @@ class WebkitGDBus {
@SuppressWarnings("unused") // Callback Only called directly by JNI.
private static long onNameLostCallback (long connection, long name, long user_data) {
- assert false : "This code should never have executed";
System.err.println("SWT WebkitGDBus.java: Lost GDBus name. This should never occur");
return 0;
}

Back to the top