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:
committed by
Bryce McKinlay
parent
ed9fca3f20
commit
8444766847
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user