Commit 1bf89727 by Bryce McKinlay Committed by Bryce McKinlay

2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>

	Fix for PR java.lang/258:
	* prims.cc (_Jv_PrimClass): Set state of primitive class to
	JV_STATE_DONE, to prevent accidental initialization.
	* java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
	_Jv_InterfaceAssignableFrom if target is an interface and source is
	an interface or an abstract class. Remove redundant initializeClass
	calls. Remove duplicate if_idt test.
	(_Jv_InterfaceAssignableFrom): New function.
	* java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.

From-SVN: r34563
parent d655f87d
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
_Jv_InterfaceAssignableFrom if target is an interface and source is an _Jv_InterfaceAssignableFrom if target is an interface and source is an
interface or an abstract class. Remove redundant initializeClass calls. interface or an abstract class. Remove redundant initializeClass calls.
Remove duplicate if_idt test. Remove duplicate if_idt test.
* java/lang/Class.h (_Jv_InterfaceAssignableFrom): New function. (_Jv_InterfaceAssignableFrom): New function.
* java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2000-05-31 Tom Tromey <tromey@cygnus.com> 2000-05-31 Tom Tromey <tromey@cygnus.com>
......
...@@ -200,6 +200,7 @@ private: ...@@ -200,6 +200,7 @@ private:
friend _Jv_Method *_Jv_GetMethodLocal (jclass klass, _Jv_Utf8Const *name, friend _Jv_Method *_Jv_GetMethodLocal (jclass klass, _Jv_Utf8Const *name,
_Jv_Utf8Const *signature); _Jv_Utf8Const *signature);
friend jboolean _Jv_IsAssignableFrom(jclass, jclass); friend jboolean _Jv_IsAssignableFrom(jclass, jclass);
friend jboolean _Jv_InterfaceAssignableFrom (jclass, jclass);
friend void *_Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface, friend void *_Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface,
int method_idx); int method_idx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment