sun.reflect.Reflection.getCallerClass(int) is going to be removed... how to replace?
Jochen Theodorou
blackdrag at gmx.org
Tue Jul 2 07:00:05 PDT 2013
Am 02.07.2013 15:10, schrieb Alessio Stalla:
> On Tue, Jul 2, 2013 at 2:56 PM, Jochen Theodorou <blackdrag at gmx.org> wrote:
>> I imagine other languages will have similar problems here and there...
>> or not?
>
> Hmm... what are you using that method for? I'm not aware of uses of it
> in ABCL, but that may be because we aren't smart enough... ;)
for example... Class.forName(String). Not that I advice people using
this at any time, but this class gets the caller class, to use its class
loader, to load a class by name. If your language does not generate a
direct method call, then the code in forName assumes, that additional
frame by you is the caller and uses its classloader instead the real
one. There are many such things, but I don't know if they are relevant
for ABCL.
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 mlvm-dev
mailing list