Child Widget
extends another non-abstract parent Widget
would throw NoSuchMethodException if child using parent method
#395
Milestone
Description
Child
Widget
extends another non-abstract parentWidget
would throw NoSuchMethodException if child using parent methodDetails
For example:
I only tried in
OverrideWidget
scenario. Below example could reproduce the issue:There is an abstract Widget named
AbstractWidget
, I implemented two widgetsAndroidParentWidget
andIOSParentWidget
to extendsAbstractWidget
.Then I implemented another widget named
AndroidChildWidget
extendsAndroidParentWidget
. inAndroidChildWidget
, I only added one more method. Other existing methods such likeparentMethod()
inAndroidChildWidget
just being extended directly without override.When invoking
AndroidChildWidget.parentMethod()
in test code, it would throwNoSuchMethodException
.I found a workaround: override
parentMethod
inAndroidChildWidget
explicitly withsuper.parentMethod()
. it would workThe text was updated successfully, but these errors were encountered: