aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1/libjava/java/util/natResourceBundle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.2.1/libjava/java/util/natResourceBundle.cc')
-rw-r--r--gcc-4.2.1/libjava/java/util/natResourceBundle.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc-4.2.1/libjava/java/util/natResourceBundle.cc b/gcc-4.2.1/libjava/java/util/natResourceBundle.cc
new file mode 100644
index 000000000..e8d4fb4fd
--- /dev/null
+++ b/gcc-4.2.1/libjava/java/util/natResourceBundle.cc
@@ -0,0 +1,29 @@
+/* Copyright (C) 2002, 2003, 2005 Free Software Foundation
+
+ 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. */
+
+// Written by Tom Tromey <tromey@redhat.com>
+
+#include <config.h>
+
+#include <gcj/cni.h>
+#include <jvm.h>
+#include <java-stack.h>
+#include <java/util/ResourceBundle.h>
+#include <java/lang/ClassLoader.h>
+#include <java/lang/Class.h>
+
+using namespace java::lang;
+
+java::lang::ClassLoader *
+java::util::ResourceBundle::getCallingClassLoader ()
+{
+ jclass caller = _Jv_StackTrace::GetCallingClass (&ResourceBundle::class$);
+ if (caller)
+ return caller->getClassLoaderInternal();
+ return NULL;
+}