Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Ptaszkiewicz2014-09-29 13:32:12 +0000
committerSzymon Ptaszkiewicz2014-09-29 13:32:12 +0000
commit26020fb16a289b52edabca05db34f809ac1c7435 (patch)
treed07f2780a1bb0c2d821afab45c5ff2fd6085ca10
parentf231c7afa8717ceecf7c2362c6db36227b0a7211 (diff)
downloadeclipse.platform.runtime-26020fb16a289b52edabca05db34f809ac1c7435.tar.gz
eclipse.platform.runtime-26020fb16a289b52edabca05db34f809ac1c7435.tar.xz
eclipse.platform.runtime-26020fb16a289b52edabca05db34f809ac1c7435.zip
Bug 51150 - Avoid "t.printStackTrace();" in Worker.java when logging unhandled errors
-rw-r--r--bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/Worker.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/Worker.java b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/Worker.java
index b5d16e6b4..51c04f89d 100644
--- a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/Worker.java
+++ b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/Worker.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2012 IBM Corporation and others.
+ * Copyright (c) 2003, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.core.internal.jobs;
+import org.eclipse.core.internal.runtime.RuntimeLog;
import org.eclipse.core.runtime.*;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.osgi.util.NLS;
@@ -75,7 +76,7 @@ public class Worker extends Thread {
}
}
} catch (Throwable t) {
- t.printStackTrace();
+ RuntimeLog.log(new Status(IStatus.ERROR, JobManager.PI_JOBS, JobManager.PLUGIN_ERROR, "Unhandled error", t)); //$NON-NLS-1$
} finally {
currentJob = null;
pool.endWorker(this);

Back to the top