diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 19:33:13 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 19:33:13 +0000 |
commit | dea7c7a8c8413298260e8d306fac30b31b6a9a88 (patch) | |
tree | e81823927787d66c21ddbf667a678759a6f6e0f2 /libjava | |
parent | b58a07c79c7f4ab711b21c186534f70a2517010f (diff) | |
download | gcc-dea7c7a8c8413298260e8d306fac30b31b6a9a88.tar.gz |
* java/lang/VMSecurityManager.java (currentClassLoader): Don't
call VMClassLoader.getSystemClassLoader.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/lang/VMSecurityManager.java | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5ff18928590..abd13b6ef6a 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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 diff --git a/libjava/java/lang/VMSecurityManager.java b/libjava/java/lang/VMSecurityManager.java index f995ec89cf4..03e286b2176 100644 --- a/libjava/java/lang/VMSecurityManager.java +++ b/libjava/java/lang/VMSecurityManager.java @@ -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++) { |