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

   One more thought, following up on my note above.
   
   Instead of matching the class name string at all, maybe the detection could 
rely on whether the location has line number info in the first place.
   
   `LocationWrapper.lineNumber()` already returns `-1` when that info is absent 
(it catches the JDI `ABSENT_INFORMATION` error). The trampoline frame on the 
hidden lambda class usually has no source mapping, while the real `lambda$...` 
method does. That would not depend on how the JVM happens to name the hidden 
class, so it should hold up across JDK versions without needing updates later.
   
   It also connects nicely to the original question at the top of this issue, 
"should we hide frames without line numbers?" Maybe the same signal could serve 
both the stepping filter and the stack view.
   
   Just an idea, happy to hear your thoughts on it.
   


-- 
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