bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/22729] Misleading docs in VMSecurityManager.getClassConte


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22729] Misleading docs in VMSecurityManager.getClassContext
Date: 16 Oct 2005 01:26:50 -0000

VMSecurityManager.getClassContext states:

getClassContext()[0] is the currently executing method, ie.
the method which called SecurityManager.getClassContext().  (Hint: you may need
to pop off one or more frames: don't include SecurityManager or
VMSecurityManager.getClassContext in your result.

The implication is that VMSecurityManager.getClassContext is only called by
SecurityManager.getClassContext, but in fact it is also called by
Class.forName, Class.getClassLoader and Class.newInstance. This means that the
implementation of VMSecurityManager.getClassContext has to take greater care in
ensuring the zeroth element of the returned array actually represents the right
calling context.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-03-16 
03:40 -------
Posted by David Holmes (I'm having a problem with my login :) )


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22729





reply via email to

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