re PR libgcj/28340 (gij ignores -Djava.security.manager)

2006-08-07  Gary Benson  <gbenson@redhat.com>

	PR libgcj/28340:
	* java/lang/ClassLoader.java (clinit): Install a default
	security manager if java.security.manager is defined.
	(getParent, getSystemClassLoader): Use the correct stack
	frame during security checks.
	* java/net/URLClassLoader.java (findClass): Avoid calling
	this.toString() during VM initialization.
	(runtimeInitialized): New method.
	* java/net/natURLClassLoader.cc: New file.
	* Makefile.am (nat_source_files): Added the above.
	* Makefile.in: Rebuilt.

From-SVN: r115999
This commit is contained in:
Gary Benson 2006-08-07 14:48:59 +00:00 committed by Gary Benson
parent da0f033486
commit ded9dbb894
6 changed files with 95 additions and 3 deletions

View file

@ -0,0 +1,22 @@
// natURLClassLoader.cc -- Native part of the URLClassLoader class.
/* Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
#include <config.h>
#include <gcj/cni.h>
#include <jvm.h>
#include <java/net/URLClassLoader.h>
jboolean
java::net::URLClassLoader::runtimeInitialized ()
{
return gcj::runtimeInitialized;
}