we must also check the superclass.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49189
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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;