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:
parent
9bf25b0910
commit
7ac20fe4e7
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user