ashwintemkar commented on issue #9673: URL: https://github.com/apache/netbeans/issues/9673#issuecomment-6066217197
Good point on the slash. I will use `"$$Lambda/"` instead of my earlier suggestion. On scope for NB 32, that makes sense to me. I traced the actual crash now. It is in `ComputeInlineValues.computeVariables()`, line 39: ```java int donePos = (int) info.getCompilationUnit().getLineMap().getPosition(stackLine, stackCol); ``` `stackLine` comes straight from the stack frame's line number with no check. When that frame has no line info it is `-1` (confirmed by tracing the call chain back through `InlineValueComputerImpl`), and javac's line map does not handle that, which is the exception in the original post. So for NB 32 I would propose two small, separate things: 1. A guard at the top of `computeVariables()`, if the line is not valid, return no inline variables instead of calling into the line map. That fixes the actual crash. 2. The naming check fix in `isSyntheticMethod`, using `"$$Lambda/"` as suggested. Low risk, already discussed above. I will leave the broader question of hiding every frame without a line number alone for now, agreed that is not safe without knowing more about what else relies on that, like the monitor frames you mentioned. The stepping problem stays separate, still investigating that one for the next release. -- 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
