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:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user