PR rtl-optimization/24762
[official-gcc.git] / libjava / java / util / natResourceBundle.cc
blobe8d4fb4fd43a30a1f5bc23e69ffad17047f6a3c4
1 /* Copyright (C) 2002, 2003, 2005 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 // Written by Tom Tromey <tromey@redhat.com>
11 #include <config.h>
13 #include <gcj/cni.h>
14 #include <jvm.h>
15 #include <java-stack.h>
16 #include <java/util/ResourceBundle.h>
17 #include <java/lang/ClassLoader.h>
18 #include <java/lang/Class.h>
20 using namespace java::lang;
22 java::lang::ClassLoader *
23 java::util::ResourceBundle::getCallingClassLoader ()
25 jclass caller = _Jv_StackTrace::GetCallingClass (&ResourceBundle::class$);
26 if (caller)
27 return caller->getClassLoaderInternal();
28 return NULL;