Commit 9d4440a5 by Tom Tromey Committed by Tom Tromey

VMSecurityManager.java (currentClassLoader): Don't call VMClassLoader.getSystemClassLoader.

	* java/lang/VMSecurityManager.java (currentClassLoader): Don't
	call VMClassLoader.getSystemClassLoader.

From-SVN: r99177
parent f34ac626
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> 2005-04-29 Michael Koch <konqueror@gmx.de>
* java/net/NetworkInterface.java * java/net/NetworkInterface.java
......
/* /*
* java.lang.SecurityManager: part of the Java Class Libraries project. * 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public * modify it under the terms of the GNU Library General Public
...@@ -54,7 +54,7 @@ class VMSecurityManager ...@@ -54,7 +54,7 @@ class VMSecurityManager
// The docs above are wrong. See the online docs. // The docs above are wrong. See the online docs.
// FIXME this implementation is a bit wrong too -- the docs say we // FIXME this implementation is a bit wrong too -- the docs say we
// must also consider ancestors of the system class loader. // must also consider ancestors of the system class loader.
ClassLoader systemClassLoader = VMClassLoader.getSystemClassLoader(); ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
Class[] classStack = getClassContext (caller); Class[] classStack = getClassContext (caller);
for (int i = 0; i < classStack.length; i++) for (int i = 0; i < classStack.length; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment