This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: gnu.gcj.runtime.StackTrace.findCallerClass()
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Wed, 10 Sep 2003 06:41:52 -0500
- Subject: Re: gnu.gcj.runtime.StackTrace.findCallerClass()
- Reply-to: gnustuff at thisiscool dot com
Hi Andrew,
>An example is worth a thousand words:
>
> caller = findCallerClass(1);
> caller_loader = caller ? caller->getClassLoaderInternal() : NULL;
> if (caller_loader != NULL && ! caller_loader->isAncestorOf(loader))
> s->checkPermission (new RuntimePermission (JvNewStringLatin1 ("getClassLoader")));
>
>When we get round to implementing proper Java security we'll have to
>close this loophole. But not yet.
Thanks for clarifying this. I'll submit a patch for this. It should be
a pleasant break from the DatagramSocket stuff I'm struggling with.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/