From 21fae9376c1a132caa4eb51067f02bd81b8f91f2 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 3 May 2005 22:15:01 +0000 Subject: [PATCH] VMSecurityManager.java (currentClassLoader): Use 'systemClasssLoader' directly. * java/lang/VMSecurityManager.java (currentClassLoader): Use 'systemClasssLoader' directly. From-SVN: r99185 --- libjava/ChangeLog | 5 +++++ libjava/java/lang/VMSecurityManager.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index abd13b6..dc02544 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,10 @@ 2005-05-03 Tom Tromey + * java/lang/VMSecurityManager.java (currentClassLoader): Use + 'systemClasssLoader' directly. + +2005-05-03 Tom Tromey + * java/lang/VMSecurityManager.java (currentClassLoader): Don't call VMClassLoader.getSystemClassLoader. diff --git a/libjava/java/lang/VMSecurityManager.java b/libjava/java/lang/VMSecurityManager.java index 03e286b..77a7462 100644 --- a/libjava/java/lang/VMSecurityManager.java +++ b/libjava/java/lang/VMSecurityManager.java @@ -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++) { -- 2.7.4