mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-28 02:54:42 +08:00
827452ae5c
* Makefile.am (core_java_source_files): Add VMObjectStreamClass.java. (nat_source_files): Add natVMObjectStreamClass.cc. * Makefile.in: Regenerated. * gcj/javaprims.h (namespace java): Regenerated. * java/io/ObjectStreamClass.java (getClassUID): Call VMObjectStreamClass.hasClassInitializer(). (hasClassInitializer): Removed. * java/io/VMObjectStreamClass.java: New class. * java/io/natVMObjectStreamClass.cc: New file. * java/lang/Class.h: Make java::io::VMObjectStreamClass friend class. From-SVN: r61501
24 lines
639 B
C++
24 lines
639 B
C++
// natVMObjectStreamClass.cc - Native part of VMObjectStreamClass class.
|
|
|
|
/* Copyright (C) 2003 Free Software Foundation
|
|
|
|
This VMObjectStreamClass is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the ObjectInputStream "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#include <gcj/cni.h>
|
|
#include <jvm.h>
|
|
|
|
#include <java/io/VMObjectStreamClass.h>
|
|
#include <java/lang/Class.h>
|
|
|
|
jboolean
|
|
java::io::VMObjectStreamClass::hasClassInitializer (jclass klass)
|
|
{
|
|
_Jv_Method *meth = _Jv_GetMethodLocal(klass, gcj::clinit_name,
|
|
gcj::void_signature);
|
|
return (meth != NULL);
|
|
}
|