verify.cc (is_assignable_from_slow): If source is an interface, we must also check the superclass.

* verify.cc (is_assignable_from_slow): If source is an interface,
	we must also check the superclass.

From-SVN: r49189
This commit is contained in:
Per Bothner 2002-01-24 12:02:21 -08:00 committed by Per Bothner
parent 9bf25b0910
commit 7ac20fe4e7
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-01-24 Per Bothner <per@bothner.com>
* verify.cc (is_assignable_from_slow): If source is an interface,
we must also check the the superclass.
2002-01-24 Tom Tromey <tromey@redhat.com>
* gnu/awt/xlib/XToolkit.java (getPrintJob): New stub method.

View File

@ -261,7 +261,9 @@ private:
if (is_assignable_from_slow (target, source->interfaces[i]))
return true;
}
return false;
source = source->getSuperclass ();
if (source == NULL)
return false;
}
else if (target == &java::lang::Object::class$)
return true;