mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 19:37:29 +08:00
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
@ -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.
|
||||
|
@ -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…
Reference in New Issue
Block a user