[hg] main-silver: Catch ObjectCollectedExceptionWrapper from Typ...

  • From:
  • To:
  • Subject: [hg] main-silver: Catch ObjectCollectedExceptionWrapper from Typ...
  • Date: Tue, 12 Feb 2013 04:40:48 -0800

changeset ebe4f6f3292a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/ebe4f6f3292a
description:
        Catch ObjectCollectedExceptionWrapper from TypeWrapper.name().

diffstat:

 
debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/JavaComponentInfo.java
 |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/JavaComponentInfo.java
 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/JavaComponentInfo.java
--- 
a/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/JavaComponentInfo.java
+++ 
b/debugger.jpda.visual/src/org/netbeans/modules/debugger/jpda/visual/JavaComponentInfo.java
@@ -666,6 +666,10 @@
                 }
             } catch (InternalExceptionWrapper iex) {
                 return oldValue;
+            } catch (ObjectCollectedExceptionWrapper ocex) {
+                NotifyDescriptor msg = new 
NotifyDescriptor.Message(ocex.getLocalizedMessage(), 
NotifyDescriptor.WARNING_MESSAGE);
+                DialogDisplayer.getDefault().notify(msg);
+                return oldValue;
             } catch (UnsupportedOperationExceptionWrapper uex) {
                 NotifyDescriptor msg = new 
NotifyDescriptor.Message(uex.getLocalizedMessage(), 
NotifyDescriptor.WARNING_MESSAGE);
                 DialogDisplayer.getDefault().notify(msg);

[hg] main-silver: Catch ObjectCollectedExceptionWrapper from Typ...

mentlicher 02/12/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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close