/[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.24 by archie172, Tue Jan 4 17:45:50 2005 UTC revision 1.25 by archie172, Tue Jan 4 19:18:30 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    
 import gnu.classpath.VMStackWalker;  
   
41  import java.awt.AWTPermission;  import java.awt.AWTPermission;
42  import java.io.File;  import java.io.File;
43  import java.io.FileDescriptor;  import java.io.FileDescriptor;
# Line 181  public class SecurityManager Line 179  public class SecurityManager
179     */     */
180    protected Class[] getClassContext()    protected Class[] getClassContext()
181    {    {
182      Class[] stack1 = VMStackWalker.getClassContext();      return VMSecurityManager.getClassContext();
     Class[] stack2 = new Class[stack1.length - 1];  
     System.arraycopy(stack1, 1, stack2, 0, stack1.length - 1);  
     return stack2;  
183    }    }
184    
185    /**    /**
# Line 206  public class SecurityManager Line 201  public class SecurityManager
201     */     */
202    protected ClassLoader currentClassLoader()    protected ClassLoader currentClassLoader()
203    {    {
204      Class cl = currentLoadedClass();      return VMSecurityManager.currentClassLoader();
     return cl != null ? cl.getClassLoader() : null;  
205    }    }
206    
207    /**    /**

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

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