From ded9dbb8948c50aec540d382846b8a554d31e007 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Mon, 7 Aug 2006 14:48:59 +0000 Subject: re PR libgcj/28340 (gij ignores -Djava.security.manager) 2006-08-07 Gary Benson 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 --- libjava/java/net/natURLClassLoader.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libjava/java/net/natURLClassLoader.cc (limited to 'libjava/java/net/natURLClassLoader.cc') diff --git a/libjava/java/net/natURLClassLoader.cc b/libjava/java/net/natURLClassLoader.cc new file mode 100644 index 00000000000..ead0db44aff --- /dev/null +++ b/libjava/java/net/natURLClassLoader.cc @@ -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 + +#include +#include + +#include + +jboolean +java::net::URLClassLoader::runtimeInitialized () +{ + return gcj::runtimeInitialized; +} -- cgit v1.2.3