prims.cc (init_prim_class): Deleted.
2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com> * prims.cc (init_prim_class): Deleted. (DECLARE_PRIM_TYPE): Rewritten. * java/lang/Class.h (stdio.h): Include removed. (stddef.h): Included. (java/lang/reflect/Modifier.h): Likewise. (Class): Contructor now takes arguments, initializes fields. (initializePrim): Prototype deleted. * java/lang/natClass.cc (initializePrim): Deleted. (http://sources.redhat.com/ml/java-patches/2001-q1/msg00081.html) From-SVN: r39088
This commit is contained in:
parent
d34786e3fe
commit
ed8cc5fdf8
4 changed files with 34 additions and 72 deletions
|
@ -633,12 +633,6 @@ java::lang::Class::isInstance (jobject obj)
|
|||
return _Jv_IsAssignableFrom (this, JV_CLASS (obj));
|
||||
}
|
||||
|
||||
jboolean
|
||||
java::lang::Class::isInterface (void)
|
||||
{
|
||||
return (accflags & java::lang::reflect::Modifier::INTERFACE) != 0;
|
||||
}
|
||||
|
||||
jobject
|
||||
java::lang::Class::newInstance (void)
|
||||
{
|
||||
|
@ -1408,20 +1402,3 @@ java::lang::Class::getPrivateMethod (jstring name, JArray<jclass> *param_types)
|
|||
}
|
||||
JvThrow (new java::lang::NoSuchMethodException);
|
||||
}
|
||||
|
||||
// Perform a lightweight initialization of a Class object, for the
|
||||
// purpose of creating the Class object of primitive types.
|
||||
|
||||
void
|
||||
java::lang::Class::initializePrim (jobject cname, jbyte sig, jint len, jobject avtable)
|
||||
{
|
||||
using namespace java::lang::reflect;
|
||||
|
||||
name = _Jv_makeUtf8Const ((char *) cname, -1);
|
||||
accflags = Modifier::PUBLIC | Modifier::FINAL | Modifier::ABSTRACT;
|
||||
method_count = sig;
|
||||
size_in_bytes = len;
|
||||
// We temporarily store `avtable' in the `vtable' field, so that the
|
||||
// copy constructor can correctly invoke _Jv_FindArrayClass.
|
||||
vtable = (_Jv_VTable *) avtable;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue