[hg] main-silver: #227618: Propagate InvalidExpressionException.

  • From:
  • To:
  • Subject: [hg] main-silver: #227618: Propagate InvalidExpressionException.
  • Date: Sun, 31 Mar 2013 04:41:43 -0700

changeset d13d9d00df9f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/d13d9d00df9f
description:
        #227618: Propagate InvalidExpressionException.

diffstat:

 
debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java
 |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (25 lines):

diff --git 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java
 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java
--- 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java
+++ 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java
@@ -46,6 +46,7 @@
 
 import java.awt.datatransfer.Transferable;
 import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
 import java.util.Collection;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -383,6 +384,13 @@
                                            new Class[] { Integer.TYPE });
             toStringMethod.setAccessible(true);
             toString = (String) toStringMethod.invoke(v, 
TO_STRING_LENGTH_LIMIT);
+        } catch (InvocationTargetException itex) {
+            Throwable te = itex.getTargetException();
+            if (te instanceof InvalidExpressionException) {
+                throw (InvalidExpressionException) te;
+            } else {
+                Exceptions.printStackTrace(itex);
+            }
         } catch (Exception ex) {
             Exceptions.printStackTrace(ex);
         }

[hg] main-silver: #227618: Propagate InvalidExpressionException.

mentlicher 03/31/2013

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