Obvious fix for systems with no interpreter.

From-SVN: r72903
This commit is contained in:
Anthony Green 2003-10-24 18:27:29 +00:00 committed by Anthony Green
parent 7a24bb87d5
commit fe8738988d
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-10-24 Anthony Green <green@redhat.com>
* java/lang/natClass.cc (_Jv_LinkSymbolTable): Fix case where
we have no interpreter.
2003-10-22 Andrew Haley <aph@redhat.com> 2003-10-22 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (initializeClass): Call * java/lang/natClass.cc (initializeClass): Call

View File

@ -1698,9 +1698,11 @@ _Jv_LinkSymbolTable(jclass klass)
{ {
if (meth->ncode) // Maybe abstract? if (meth->ncode) // Maybe abstract?
klass->atable->addresses[index] = meth->ncode; klass->atable->addresses[index] = meth->ncode;
#ifdef INTERPRETER
else if (_Jv_IsInterpretedClass (target_class)) else if (_Jv_IsInterpretedClass (target_class))
_Jv_Defer_Resolution (target_class, meth, _Jv_Defer_Resolution (target_class, meth,
&klass->atable->addresses[index]); &klass->atable->addresses[index]);
#endif
} }
else else
klass->atable->addresses[index] = (void *)_Jv_ThrowNoSuchMethodError; klass->atable->addresses[index] = (void *)_Jv_ThrowNoSuchMethodError;