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
+3 -1
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;