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:
Bryce McKinlay 2001-09-30 02:41:54 +00:00 committed by Bryce McKinlay
parent ed9fca3f20
commit 8444766847
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
an uninitialized target class.
2001-09-28 Per Bothner <per@bothner.com>
* gnu/gcj/runtime/SharedLibLoader.java: New class.

View File

@ -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;