Skip to main content

AccessController, AccessControlContext, and DomainCombiner

No replies
vladbalan
Offline
Joined: 2008-11-09
Points: 0

Hello,

I have a question about AccessControlContext.java in JDK 1.6:

The question is: the comments on "AccessController.doPrivilegedWithCombiner" method say that this method preserves the current AccessControlContext's DomainCombiner.
But the code shows that the it is the StackAccessControlContext that is tested to recuperate the combiner.

Can a stackAccessControlContext can ever have a combiner? From what i understood, a combiner can come into play only through an assigned control context, previously constructed to have a combiner, and than passed in a call like: AccessController.doPrivileged(..., context)
as the javadocs of DomainCombiner say.

Pls help me understand this. Thank you so much.

Message was edited by: vladbalan