Replacement of sun.reflect.Reflection#getCallerClass

Jochen Theodorou blackdrag at gmx.org
Tue Sep 3 17:33:54 UTC 2013


Am 03.09.2013 16:12, schrieb A. Sundararajan:
[...]
> If Groovy or any third-party framework gets away with that -- that is
> because you need to use modified security policy that gives those
> necessary permissions to groovy.jar or whatever third-party jar in
> question.

just think of us needing to build a runtime structure "copying" what is 
in a normal class (plus some changes) available in terms of fields and 
methods. If you don't generate that information (and you cannot for 
unknown classes), then how can you get that without using reflection and 
things like getDeclaredMethods. (not to mention several properties and 
many other things).

In other words: it is imho impossible to run even a single Groovy 
program without giving it some permissions.

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