[hg] main-silver: #223116: Catch VMDisconnectedException thrown ...

  • From:
  • To:
  • Subject: [hg] main-silver: #223116: Catch VMDisconnectedException thrown ...
  • Date: Mon, 03 Dec 2012 18:37:24 -0800

changeset 3d2ca85ff73b in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/3d2ca85ff73b
description:
        #223116: Catch VMDisconnectedException thrown from toString() call.

diffstat:

 
debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff --git 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
--- 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
+++ 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java
@@ -54,6 +54,7 @@
 import com.sun.jdi.StringReference;
 import com.sun.jdi.ThreadGroupReference;
 import com.sun.jdi.ThreadReference;
+import com.sun.jdi.VMDisconnectedException;
 
 import com.sun.jdi.VirtualMachine;
 import com.sun.jdi.event.Event;
@@ -1292,7 +1293,7 @@
                 int tsc = 
ThreadReferenceWrapper.suspendCount(threadReference);
                 if (suspendCount != tsc) {
                     // Should not occur
-                    Exceptions.printStackTrace(new 
IllegalStateException("Different suspend counts! JPDA Thread = 
"+suspendCount+", thread "+threadReference+" = "+tsc));
+                    Exceptions.printStackTrace(new 
IllegalStateException("Different suspend counts! JPDA Thread = 
"+suspendCount+", thread "+threadReference+" = "+tsc+", thread's state: 
"+getThreadStateLog(threadReference)));
                     suspendCount = tsc;
                 }
                 // The thread needs to be only single-suspended, otherwise 
it can not invoke methods.
@@ -1301,6 +1302,7 @@
                 }
             } catch (InternalExceptionWrapper iew) {
             } catch (VMDisconnectedExceptionWrapper dew) {
+            } catch (VMDisconnectedException de) { // from 
ThreadReference.toString()
             } catch (ObjectCollectedExceptionWrapper oce) {
             } catch (IllegalThreadStateExceptionWrapper itse) {
             }

[hg] main-silver: #223116: Catch VMDisconnectedException thrown ...

mentlicher 12/04/2012

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close