ashwintemkar commented on issue #9673:
URL: https://github.com/apache/netbeans/issues/9673#issuecomment-6054990382

   Dug into `isSyntheticMethod` a bit. Found a real bug.
   
   The class name check on [line 
1107](https://github.com/apache/netbeans/blob/c25d20f6327ba05c2451c2a5fa209a5bdaa3d303/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java#L1107)
 looks for `"$$Lambda$"` with a trailing `$`. Your own trace above shows the 
actual hidden class name is `Mavenproject1$$Lambda/0x...`. No trailing `$`. 
Just a slash. That is the *old* naming scheme from before JEP 371. The modern 
one never matches it. On recent JDKs this branch is dead code. It falls through 
to the raw `isSynthetic()` flag instead.
   
   The fix is simple. Drop the trailing `$`:
   ```java
   if (className.contains("$$Lambda")) {
   ```
   
   You said it fails on JDK 8 too. The old string still matches there. There is 
a second bug further down. My current guess, it is in how `doStepDepth` gets 
reused once `syntheticStep` comes back as `-1`. It stays at the original step 
depth, instead of explicitly continuing `INTO`. It could also be the 
`lineNumber == 1` check right above it. I am **not convinced** that check does 
what the comment claims. Still digging into that part.
   
   Mind if I take this one?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to