mbien opened a new issue, #9673:
URL: https://github.com/apache/netbeans/issues/9673

   ```java
       private static <V> V foo(Callable<V> call) throws Exception {
           return call.call();
       }
   
       static void main() throws Exception {
           foo(() -> {
               return null; // set breakpoint
           });
       }
   ```
   
   
   trying to get to the marked stack frame causes an exception, should we hide 
frames without line numbers?
   
   <img width="830" height="419" alt="Image" 
src="https://github.com/user-attachments/assets/4f6c78e2-7e9a-45d9-a92d-b2623608b26a";
 />
   
   ```
   SEVERE [org.openide.util.Exceptions]
   java.lang.ArrayIndexOutOfBoundsException: Index -2 out of bounds for length 
22
        at 
com.sun.tools.javac.util.Position$LineTabMapImpl.getPosition(Position.java:278)
        at 
com.sun.tools.javac.util.Position$LineMapImpl.getPosition(Position.java:193)
        at 
com.sun.tools.javac.util.Position$LineTabMapImpl.getPosition(Position.java:253)
        at 
org.netbeans.modules.debugger.jpda.ui.values.ComputeInlineValues.computeVariables(ComputeInlineValues.java:41)
        at 
org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl$ComputeInlineVariablesFactory$1.run(InlineValueComputerImpl.java:355)
        at 
org.netbeans.modules.debugger.jpda.ui.models.InlineValueComputerImpl$ComputeInlineVariablesFactory$1.run(InlineValueComputerImpl.java:332)
   [catch] at 
org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:330)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1370)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1981)
   ```
   
   cc @lahodaj  


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