diff options
Diffstat (limited to 'libjava/java/lang/natClass.cc')
-rw-r--r-- | libjava/java/lang/natClass.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/lang/natClass.cc b/libjava/java/lang/natClass.cc index 01058dc..ff5e9c6 100644 --- a/libjava/java/lang/natClass.cc +++ b/libjava/java/lang/natClass.cc @@ -92,8 +92,6 @@ java::lang::Class::forName (jstring className) if (! klass) JvThrow (new java::lang::ClassNotFoundException (className)); - _Jv_InitClass (klass); - return klass; } @@ -354,6 +352,8 @@ java::lang::Class::newInstance (void) || java::lang::reflect::Modifier::isAbstract(accflags)) JvThrow (new java::lang::InstantiationException); + _Jv_InitClass (this); + _Jv_Method *meth = _Jv_GetMethodLocal (this, init_name, void_signature); if (! meth) JvThrow (new java::lang::NoSuchMethodException); @@ -408,7 +408,7 @@ java::lang::Class::initializeClass (void) { // Step 1. _Jv_MonitorEnter (this); - _Jv_InternClassStrings (this); + _Jv_PrepareCompiledClass (this); } } else |