[hg] main-silver: #222077: Initialize the InvocationExceptionTra...

  • From:
  • To:
  • Subject: [hg] main-silver: #222077: Initialize the InvocationExceptionTra...
  • Date: Thu, 15 Nov 2012 02:38:03 -0800

changeset 37f910cb0ed6 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/37f910cb0ed6
description:
        #222077: Initialize the InvocationExceptionTranslated after the 
thread is notified about finish of method invocation.

diffstat:

 
debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/VisualDebuggerListener.java
 |  17 +++++----
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (40 lines):

diff --git 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/VisualDebuggerListener.java
 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/VisualDebuggerListener.java
--- 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/VisualDebuggerListener.java
+++ 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/VisualDebuggerListener.java
@@ -288,6 +288,7 @@
             
             ClassType serviceClass = (ClassType) 
ClassObjectReferenceWrapper.reflectedType(cor);//RemoteServices.getClass(vm, 
"org.netbeans.modules.debugger.jpda.visual.remote.RemoteService");
 
+            InvocationExceptionTranslated iextr = null;
             Method startMethod = 
ClassTypeWrapper.concreteMethodByName(serviceClass, "startAccessLoop", "()V");
             try {
                 t.notifyMethodInvoking();
@@ -302,19 +303,21 @@
                 }
             } catch (VMDisconnectedExceptionWrapper vmd) {
             } catch (InvocationException iex) {
-                InvocationExceptionTranslated iextr = new 
InvocationExceptionTranslated(iex, t.getDebugger());
+                iextr = new InvocationExceptionTranslated(iex, 
t.getDebugger());
+                Exceptions.printStackTrace(iex);
+            } catch (Exception ex) {
+                Exceptions.printStackTrace(ex);
+            } finally {
+                t.notifyMethodInvokeDone();
+                ObjectReferenceWrapper.enableCollection(cor); // While 
AWTAccessLoop is running, it should not be collected.
+            }
+            if (iextr != null) {
                 iextr.setPreferredThread(t);
                 iextr.getMessage();
                 iextr.getLocalizedMessage();
                 iextr.getCause();
                 iextr.getStackTrace();
                 Exceptions.printStackTrace(iextr);
-                Exceptions.printStackTrace(iex);
-            } catch (Exception ex) {
-                Exceptions.printStackTrace(ex);
-            } finally {
-                t.notifyMethodInvokeDone();
-                ObjectReferenceWrapper.enableCollection(cor); // While 
AWTAccessLoop is running, it should not be collected.
             }
         } catch (InternalExceptionWrapper iex) {
         } catch (ClassNotPreparedExceptionWrapper cnpex) {

[hg] main-silver: #222077: Initialize the InvocationExceptionTra...

mentlicher 11/15/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