One can work around the warnings by including the same attributein the
subclass.
<class name="A">
<attribute name="foo" required="true"/>
</class>
<class name="B" extends="A">
<attribute name="foo" required="true"/>
</class>
But this very cumbersome if you have a lot of inheritance and plenty of
required attributes.
- rami
On 09/12/2011 11:32 AM, Rami Ojares / AMG wrote:
Hi,
If I define an attribute as required
<attribute name="myname" required="true"/>
and then extend that class
the compiler warns about the missing required attribute even though I
don't instantiate the class.
- rami