News for hackers. Stuff that matters.
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by ts4z on Sunday January 18, 2015 @12:49AM (#8906790)
There's no guarantee the method that created the lambda is still on the stack. If a method returns a callback, the method that created the lambda has returned before the lambda is called.
Re:What's Stopping Me Using Java8 Lambdas – Try Debugging Them by organsnyder on Sunday January 18, 2015 @05:32AM (#8907189)
But wouldn't the stacktrace still include the file and line number where the lambda was created? Yes, you can't easily trace the code path between the creation of the lambda to its execution, but that strikes me as no different than debugging any other issue with bad data.