OSDN Git Service

* java/lang/VMSecurityManager.java (currentClassLoader): Don't
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2005 19:33:13 +0000 (19:33 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2005 19:33:13 +0000 (19:33 +0000)
call VMClassLoader.getSystemClassLoader.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99177 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/lang/VMSecurityManager.java

index 5ff1892..abd13b6 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-03  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/VMSecurityManager.java (currentClassLoader): Don't
+       call VMClassLoader.getSystemClassLoader.
+
 2005-04-29  Michael Koch  <konqueror@gmx.de>
 
        * java/net/NetworkInterface.java
index f995ec8..03e286b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * java.lang.SecurityManager: part of the Java Class Libraries project.
- * Copyright (C) 1998, 2001, 2002 Free Software Foundation
+ * Copyright (C) 1998, 2001, 2002, 2005 Free Software Foundation
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -54,7 +54,7 @@ class VMSecurityManager
     // The docs above are wrong.  See the online docs.
     // FIXME this implementation is a bit wrong too -- the docs say we
     // must also consider ancestors of the system class loader.
-    ClassLoader systemClassLoader = VMClassLoader.getSystemClassLoader();
+    ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
     Class[] classStack = getClassContext (caller);
     for (int i = 0; i < classStack.length; i++)
       {