[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about serialization

From: Tom Tromey
Subject: Re: question about serialization
Date: 04 Aug 2003 20:09:30 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Bryce" == Bryce McKinlay <address@hidden> writes:

Bryce> But I presume that for normal applications where security is
Bryce> not required (ie System.getSecurityManager()), such checks are
Bryce> avoided?

Yes, the security manager itself walks the stack in this case, so if
there is no security manager...

There are also situations where the code unconditionally must find the
caller and use that to do access checks, e.g. in Method.

Also there are cases where you must find the caller's class loader,
say in order to implement Class.forName.

In libgcj these latter cases are also implemented by stack crawling.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]