VMSecurityManager.java (currentClassLoader): Use 'systemClasssLoader' directly.
authorTom Tromey <tromey@redhat.com>
Tue, 3 May 2005 22:15:01 +0000 (22:15 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 3 May 2005 22:15:01 +0000 (22:15 +0000)
* java/lang/VMSecurityManager.java (currentClassLoader): Use
'systemClasssLoader' directly.

From-SVN: r99185

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

index abd13b6..dc02544 100644 (file)
@@ -1,5 +1,10 @@
 2005-05-03  Tom Tromey  <tromey@redhat.com>
 
+       * java/lang/VMSecurityManager.java (currentClassLoader): Use
+       'systemClasssLoader' directly.
+
+2005-05-03  Tom Tromey  <tromey@redhat.com>
+
        * java/lang/VMSecurityManager.java (currentClassLoader): Don't
        call VMClassLoader.getSystemClassLoader.
 
index 03e286b..77a7462 100644 (file)
@@ -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 = ClassLoader.getSystemClassLoader();
+    ClassLoader systemClassLoader = ClassLoader.systemClassLoader;
     Class[] classStack = getClassContext (caller);
     for (int i = 0; i < classStack.length; i++)
       {