Review request 8153912: StackFrame::getFileName and StackFrame::getLineNumber not needed

Daniel Fuchs daniel.fuchs at oracle.com
Mon Mar 13 20:57:11 UTC 2017


Hi Ralph,

On 13/03/17 19:06, Ralph Goers wrote:
> OK - I will do that when I fix the other bug.  But if you can suggest some other way to bail out of the loop after I have found the correct StackFrame that would help as well.
>

I'd suggest using filter + findFirst, possibly with a
statefull Predicate<StackFrame> - depending on the logic
needed to identify the frame you want to return.


That's what we do in java.util.logging - where we walk
until we find a logger implementation frame, and then
continue walking until we find a frame that no longer
belong to the logging infrastructure.

best regards,

-- daniel


More information about the core-libs-dev mailing list