Hi Pascal,

this can't work because Interface implementation is checked before an 
object is created. So you can either move the "implement" key to Konkr, 
or you can keep it in Abstr and add a method m1 that throws an error 
like "Abstract method call". That's how it's done in the framework classes.


Regards,
Daniel

Pascal Chorus schrieb:
> Hi all,
>  
> I detected a problem when defining a class hierarchy containing an 
> interface and multiple abstract classes.
> In the attachment, you find the sourcecode referring to what I am 
> describing here.
>  
> I defined the following hierarchy:
>  
> Inter             qx.Interface
>  
> Abstr            qx.Class, type: "abstract"
>  
> Abstr2          qx.Class, type: "abstract"
>  
> Konkr           qx.Class, concrete class
>  
>  
> In the interface "Inter", the function f1 is declared. "Abstr" and 
> "Abstr2" do not implement the function, only "Konkr" does.
> When instantiating an object of class "Konkr", firebug reports the 
> following error:
>  
> *Implementation of method "f1" is missing in class "Abstr2" required by 
> interface "Inter".*
>  
> f1 is indeed missing in "Abstr2", but in my opinion, this should not be 
> a problem, since "Abstr2" is abstract anyway.
> Furthermore, an object of type "Konkr" is created and "Konkr" has an 
> implementation of "f1".
>  
> This problem can be reproduced with the attached code.
> Am I doing anything wrong or is there a bug?
>  
> Thank you in advance.
>  
> Best regards.
> Pascal Chorus
>  
>  
> Pascal Chorus
> INFORM GmbH,  Pascalstr. 23,  52076 Aachen,  Germany
> Tel. (+49) 2408 9456-1700, Fax: (+49) 2408 9456-1750
> E-Mail: [email protected] 
> <mailto:[email protected]>,  http://www.inform-ac.com 
> <http://www.inform-ac.com/>
> INFORM Institut für Operations Research und Management GmbH
> Registered AmtsG Aachen HRB1144 Gfhr.Adrian Weiler
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to