Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2016-02-29 09:24:49 +0000
committerSarika Sinha2016-02-29 09:24:49 +0000
commit567542cd1df099bb451325df6eed77d21f13d71f (patch)
tree041ef69b425ce8bc87431a70a24e887f33f8eecc
parentaf70e1a85f9a3e80899bcdd28f59856ab9cd70e9 (diff)
downloadeclipse.jdt.debug-567542cd1df099bb451325df6eed77d21f13d71f.tar.gz
eclipse.jdt.debug-567542cd1df099bb451325df6eed77d21f13d71f.tar.xz
eclipse.jdt.debug-567542cd1df099bb451325df6eed77d21f13d71f.zip
Bug 488350 - [Tests] Cannot Connect to VM failing on MacI20160301-1230I20160301-0800
-rw-r--r--org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMDebugger.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMDebugger.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMDebugger.java
index 8ed192928..3b811ab50 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMDebugger.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMDebugger.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 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
@@ -297,6 +297,7 @@ public class StandardVMDebugger extends StandardVMRunner {
}
subMonitor.worked(1);
subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Establishing_debug_connection____5);
+ int retryCount = 0;
boolean retry= false;
do {
try {
@@ -367,6 +368,12 @@ public class StandardVMDebugger extends StandardVMRunner {
if (result instanceof Boolean) {
retry = ((Boolean)result).booleanValue();
}
+ if (!retry && retryCount < 5) {
+ retry = true;
+ retryCount++;
+ LaunchingPlugin.log("Retrying count: " + retryCount); //$NON-NLS-1$
+
+ }
}
} while (retry);
} finally {

Back to the top