natClass.cc (_Jv_IsAssignableFrom): Handle the case of an uninitialized target class.
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of an uninitialized target class. From-SVN: r45893
This commit is contained in:
parent
ed9fca3f20
commit
8444766847
2 changed files with 8 additions and 2 deletions
|
@ -956,8 +956,9 @@ _Jv_IsAssignableFrom (jclass target, jclass source)
|
|||
return false;
|
||||
return true;
|
||||
}
|
||||
else if (source->ancestors != NULL
|
||||
&& source->depth >= target->depth
|
||||
else if (source->ancestors != NULL
|
||||
&& target->ancestors != NULL
|
||||
&& source->depth >= target->depth
|
||||
&& source->ancestors[source->depth - target->depth] == target)
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue