[PATCH] 4851444: Exposing sun.reflect.Reflection#getCallerClass as a public API in Java 8
Jochen Theodorou
blackdrag at gmx.org
Fri Sep 20 08:58:20 UTC 2013
Am 20.09.2013 09:09, schrieb Mandy Chung:
[...]
> Stack is a "stream" that allows you to walk partial stack (e.g. find
> caller) or full stack trace (e.g. throwable). The filtering and mapping
> operations are lazy to avoid having the VM eagerly copying the entire
> stack trace data even for the short reach case (like Groovy and Log4j).
and is there a link to StackStram too?
The Thread#walkStack methods don't really describe the behaviour of the
consumer. Will the consumer applied only once, or multiple times? If
only once, then to replace getCallerClass(int depth), you will need the
version with the predicate, which will be difficult to realize with a
simple lambda, since you will need to count as well.
bye Jochen
--
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