OSDN Git Service

2003-02-27 Michael Koch <konqueror@gmx.de>
[pf3gnuchains/gcc-fork.git] / libjava / java / io / natVMObjectStreamClass.cc
1 // natVMObjectStreamClass.cc - Native part of VMObjectStreamClass class.
2
3 /* Copyright (C) 2003  Free Software Foundation
4
5    This VMObjectStreamClass is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the ObjectInputStream "LIBGCJ_LICENSE" for
9 details.  */
10
11 #include <gcj/cni.h>
12 #include <jvm.h>
13
14 #include <java/io/VMObjectStreamClass.h>
15 #include <java/lang/Class.h>
16
17 jboolean
18 java::io::VMObjectStreamClass::hasClassInitializer (jclass klass)
19 {
20   _Jv_Method *meth = _Jv_GetMethodLocal(klass, gcj::clinit_name,
21                                                gcj::void_signature);
22   return (meth != NULL);
23 }