/[classpath]/classpath/java/lang/SecurityManager.java
ViewVC logotype

Diff of /classpath/java/lang/SecurityManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by jfrijters, Mon Dec 6 20:43:13 2004 UTC revision 1.24 by archie172, Tue Jan 4 17:45:50 2005 UTC
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package java.lang;  package java.lang;
40    
41    import gnu.classpath.VMStackWalker;
42    
43  import java.awt.AWTPermission;  import java.awt.AWTPermission;
44  import java.io.File;  import java.io.File;
45  import java.io.FileDescriptor;  import java.io.FileDescriptor;
# Line 179  public class SecurityManager Line 181  public class SecurityManager
181     */     */
182    protected Class[] getClassContext()    protected Class[] getClassContext()
183    {    {
184      return VMSecurityManager.getClassContext();      Class[] stack1 = VMStackWalker.getClassContext();
185        Class[] stack2 = new Class[stack1.length - 1];
186        System.arraycopy(stack1, 1, stack2, 0, stack1.length - 1);
187        return stack2;
188    }    }
189    
190    /**    /**
# Line 201  public class SecurityManager Line 206  public class SecurityManager
206     */     */
207    protected ClassLoader currentClassLoader()    protected ClassLoader currentClassLoader()
208    {    {
209      return VMSecurityManager.currentClassLoader();      Class cl = currentLoadedClass();
210        return cl != null ? cl.getClassLoader() : null;
211    }    }
212    
213    /**    /**

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26