2005-03-10 20:02:21 +01:00
|
|
|
/* Copyright (C) 2002, 2003, 2005 Free Software Foundation
|
2002-12-05 01:49:30 +01:00
|
|
|
|
|
|
|
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>
|
2005-03-10 20:02:21 +01:00
|
|
|
#include <java-stack.h>
|
2002-12-05 01:49:30 +01:00
|
|
|
#include <java/util/ResourceBundle.h>
|
|
|
|
#include <java/lang/ClassLoader.h>
|
|
|
|
#include <java/lang/Class.h>
|
2005-03-10 20:02:21 +01:00
|
|
|
|
|
|
|
using namespace java::lang;
|
2002-12-05 01:49:30 +01:00
|
|
|
|
|
|
|
java::lang::ClassLoader *
|
|
|
|
java::util::ResourceBundle::getCallingClassLoader ()
|
|
|
|
{
|
2005-03-10 20:02:21 +01:00
|
|
|
jclass caller = _Jv_StackTrace::GetCallingClass (&ResourceBundle::class$);
|
|
|
|
if (caller)
|
|
|
|
return caller->getClassLoaderInternal();
|
2002-12-05 01:49:30 +01:00
|
|
|
return NULL;
|
|
|
|
}
|