blob: 7052bc8e800fa45e74301e7dbf266c2f65642be1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// natSystemClassLoader.cc - native code for system class loader
/* Copyright (C) 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. */
#include <config.h>
#include <platform.h>
#include <gcj/cni.h>
#include <jvm.h>
#include <execution.h>
#include <gnu/gcj/runtime/SystemClassLoader.h>
#include <java/lang/ClassNotFoundException.h>
#include <java/util/HashMap.h>
jclass
gnu::gcj::runtime::SystemClassLoader::findClass (jstring name)
{
jclass result = (jclass) nativeClasses->get(name);
if (! result)
return URLClassLoader::findClass(name);
// Never return a class whose supers are not installed.
_Jv_Linker::wait_for_state (result, JV_STATE_LOADING);
return result;
}
|