Commit 84447668 by Bryce McKinlay Committed by Bryce McKinlay

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
parent ed9fca3f
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> 2001-09-28 Per Bothner <per@bothner.com>
* gnu/gcj/runtime/SharedLibLoader.java: New class. * gnu/gcj/runtime/SharedLibLoader.java: New class.
......
...@@ -956,8 +956,9 @@ _Jv_IsAssignableFrom (jclass target, jclass source) ...@@ -956,8 +956,9 @@ _Jv_IsAssignableFrom (jclass target, jclass source)
return false; return false;
return true; return true;
} }
else if (source->ancestors != NULL else if (source->ancestors != NULL
&& source->depth >= target->depth && target->ancestors != NULL
&& source->depth >= target->depth
&& 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