thorque wrote:
> 
> I meant an operation in an interface. We could not generate a useful
> method
> body, becuase the generator don't know anything about the semantic of this
> operation.
> 

You are right. We can't generate any usefull operation. The user had to
implement the method.
The only question is how to avoid/resolve the compiler errors, or should we
ignore it. 



> To force the developer to implement this method with a useful body we can
> mark this method as abstract in the abstract implementation. This class
> should not manually changed.
> 
> The compiler is not amused if the abstract class is not implemented in the
> base class. This class is marked as red.
> This is one solution. So in the abstract class is only an empty method .
> 
I thing this solution gives us no added value. The user always know, that he
has to implement the method (warning of not implemented methods of the
interface).



> The solution Istvan posted is to ignore such operations in the abstract
> class. The compiler fails too, and force the developer to implement this
> method.
> Here no empty method is generated in the abstract implementation class.
> But
> the developer must look into the interface to see the full api of this
> class, because the abstract class is incomplete.
> 
> Both solution are pragmatic. We should only decide how we handle this.
> This
> behaviour would be implented in the JavaBasic Cartridge.
> 
It is not bad into look in the interface, cause we modeled the operation in
the interface. So the user should first look into the interface, or not?

I would prefere for the easier solution, the second (with or without a
method stub to avoid compiler errors).

Darius

-- 
View this message in context: 
http://www.nabble.com/-Cartridges%3A-JavaBasic--Should-methods-definded-in-an-Interface-be-abstract-in-the-AbstractClass--tf3768454s17564.html#a10680474
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to