From fe8738988db88c3e41ca3c16f913063d1863e75f Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Fri, 24 Oct 2003 18:27:29 +0000 Subject: [PATCH] Obvious fix for systems with no interpreter. From-SVN: r72903 --- libjava/ChangeLog | 5 +++++ libjava/java/lang/natClass.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 72b4d6cb647..4636da0279e 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-10-24 Anthony Green + + * java/lang/natClass.cc (_Jv_LinkSymbolTable): Fix case where + we have no interpreter. + 2003-10-22 Andrew Haley * java/lang/natClass.cc (initializeClass): Call diff --git a/libjava/java/lang/natClass.cc b/libjava/java/lang/natClass.cc index 2d80ce2133b..2e1f9da74cb 100644 --- a/libjava/java/lang/natClass.cc +++ b/libjava/java/lang/natClass.cc @@ -1698,9 +1698,11 @@ _Jv_LinkSymbolTable(jclass klass) { if (meth->ncode) // Maybe abstract? klass->atable->addresses[index] = meth->ncode; +#ifdef INTERPRETER else if (_Jv_IsInterpretedClass (target_class)) _Jv_Defer_Resolution (target_class, meth, &klass->atable->addresses[index]); +#endif } else klass->atable->addresses[index] = (void *)_Jv_ThrowNoSuchMethodError;