summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/natURLClassLoader.cc
diff options
context:
space:
mode:
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-07 14:48:59 +0000
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-07 14:48:59 +0000
commitfe09dab129415da5abf880c63478f725a3735fec (patch)
tree6cf536258c857420080043168abdc63d0bbff7e1 /libjava/java/net/natURLClassLoader.cc
parent05a849e5563535b30fbbd0bb50fa47eed2e016a6 (diff)
downloadppe42-gcc-fe09dab129415da5abf880c63478f725a3735fec.tar.gz
ppe42-gcc-fe09dab129415da5abf880c63478f725a3735fec.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115999 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/natURLClassLoader.cc')
-rw-r--r--libjava/java/net/natURLClassLoader.cc22
1 files changed, 22 insertions, 0 deletions
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 <config.h>
+
+#include <gcj/cni.h>
+#include <jvm.h>
+
+#include <java/net/URLClassLoader.h>
+
+jboolean
+java::net::URLClassLoader::runtimeInitialized ()
+{
+ return gcj::runtimeInitialized;
+}
OpenPOWER on IntegriCloud