Patch: obvious fix for systems with no interpreter

Anthony Green green@redhat.com
Fri Oct 24 18:27:00 GMT 2003


I've checked in this obvious fix to a recent change in natClass.cc...


2003-10-24  Anthony Green  <green@redhat.com>

	* java/lang/natClass.cc (_Jv_LinkSymbolTable): Fix case where
	we have no interpreter.


Index: libjava/java/lang/natClass.cc
===================================================================
RCS file: /cvs/uberbaum/libjava/java/lang/natClass.cc,v
retrieving revision 1.68
diff -c -u -r1.68 natClass.cc
--- libjava/java/lang/natClass.cc	24 Oct 2003 09:29:43 -0000	1.68
+++ libjava/java/lang/natClass.cc	24 Oct 2003 18:16:38 -0000
@@ -1698,9 +1698,11 @@
 	    {
 	      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;



-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.



More information about the Java-patches mailing list