ashwintemkar commented on issue #9673: URL: https://github.com/apache/netbeans/issues/9673#issuecomment-6054948452
Dug into `isSyntheticMethod` a bit. Found one concrete 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$"` (trailing `$`), but your own trace above shows the actual hidden class name is `Mavenproject1$$Lambda/0x...`, slash, no trailing `$`. That's the old pre-JEP 371 naming, the modern one never matches it. So on recent JDKs this branch is dead and it falls through to the raw `isSynthetic()` flag instead. Fix is a one-liner, drop the trailing `$`: ```java if (className.contains("$$Lambda")) { ``` That said, you said it fails on JDK 8 too, where the old string does match, so there's a second bug past that point. My current guess is it's in how `doStepDepth` gets reused once `syntheticStep` comes back `-1` (it stays at whatever the original step depth was instead of explicitly continuing INTO), or the `lineNumber == 1` check right above it, I can't convince myself that's actually detecting what the comment says it is. Still digging on that half. Mind if I take this one? Happy to put up a PR once I've got the second part nailed down too. -- 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
