[PATCH] 4851444: Exposing sun.reflect.Reflection#getCallerClass as a public API in Java 8

Jochen Theodorou blackdrag at gmx.org
Fri Sep 20 10:56:46 UTC 2013


Am 20.09.2013 11:34, schrieb Peter Levart:
[...]
> List<StackFrameInfo> frames = new ArrayList<>();
> Thread.walkStack(frames::add);
>
> No so awfull.

as I said, it is unclear to me as of if walkStack walks the whole stack 
or not. Your code implies it does. If It does, I don't see the advantage 
of suing a Stream here.... or does the predicate version not?

bye blackdrag

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org




More information about the core-libs-dev mailing list