[ http://jira.andromda.org/browse/JAVA-24?page=comments#action_12040 ]
     
Christoph Trierweiler commented on JAVA-24:
-------------------------------------------

I patched ValueObject.vsl, so that the constructors in the specialized class 
are generated properly. Unfortunately the patch works for one level of 
inheritance only (A->B). My knowledge of velocity as well as the surrounding 
cartridge is not that good, so i could not figure out a way to accomplish a 
patch for infinite levels of inheritance (A->B->C->...). But i think support 
for simple inheritance is already a big improvement, at least my problems are 
solved now ;-).


> Inheritance in value objects causes wrong code for constructors of child 
> classes
> --------------------------------------------------------------------------------
>
>          Key: JAVA-24
>          URL: http://jira.andromda.org/browse/JAVA-24
>      Project: Java Cartridge
>         Type: Bug
>     Reporter: Christoph Trierweiler
>     Assignee: Matthias Bohlen
>  Attachments: ValueObject.vsl
>
> With inheritance between value objects, the constructors of the specialized 
> class are not correctly generated. They lack a super() call and they don't 
> take the attributes of the base class as constructor parameters to pass them 
> on with the super() call. 




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Reply via email to