[hg] main-silver: #224716: Do not stop in Lambda synthetic classes.

  • From:
  • To:
  • Subject: [hg] main-silver: #224716: Do not stop in Lambda synthetic classes.
  • Date: Sun, 24 Mar 2013 08:08:32 -0700

changeset 3b10a731a550 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/3b10a731a550
description:
        #224716: Do not stop in Lambda synthetic classes.

diffstat:

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

diffs (21 lines):

diff --git 
a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java 
b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java
--- a/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java
+++ b/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java
@@ -953,6 +953,17 @@
                 return StepRequest.STEP_OVER;
             }
             return 0; // Do not treat Lambda methods as synthetic, because 
they contain user code.
+        } else {
+            // Do check the class for being Lambda synthetic class:
+            ReferenceType declaringType = LocationWrapper.declaringType(loc);
+            try {
+                String className = ReferenceTypeWrapper.name(declaringType);
+                if (className.contains("$$Lambda$")) {                       
   // NOI18N
+                    // Lambda synthetic class
+                    return -1;
+                }
+            } catch (ObjectCollectedExceptionWrapper ex) {
+            }
         }
         return TypeComponentWrapper.isSynthetic(m) ? -1 : 0;
     }

[hg] main-silver: #224716: Do not stop in Lambda synthetic classes.

mentlicher 03/25/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