Commit 867e24ad by Bryce McKinlay

natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can not be assigned to Object.

	* java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
	not be assigned to Object.

From-SVN: r38505
parent 6385a28f
...@@ -909,8 +909,8 @@ _Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface, int method_idx) ...@@ -909,8 +909,8 @@ _Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface, int method_idx)
jboolean jboolean
_Jv_IsAssignableFrom (jclass target, jclass source) _Jv_IsAssignableFrom (jclass target, jclass source)
{ {
if (target == &ObjectClass if (source == target
|| source == target || (target == &ObjectClass && !source->isPrimitive())
|| (source->ancestors != NULL || (source->ancestors != NULL
&& source->ancestors[source->depth - target->depth] == target)) && source->ancestors[source->depth - target->depth] == target))
return true; return true;
......
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