[Uml-devel] [Bug 145131] New: C++ generated code for generalization association has parent implementing a child class

Kev register at knmdean.com
Mon May 7 08:28:09 UTC 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=145131         
           Summary: C++ generated code for generalization association has
                    parent implementing a child class
           Product: umbrello
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel.kde.org
        ReportedBy: register knmdean com


Version:           1.5.5 (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          gcc 4.1.1 
OS:                Linux

With Job parent class and multiple child classes, the JobExplore child class was listed as implemented by the parent.  When regenerating code, the number of times JobExplore was listed increased.

class Job : public JobExplore, public JobExplore, public JobExplore, public JobExplore
{
public:
...

The Class diagram shows associations in correct direction.  The properties for Job class shows associations as expected. Properties for JobExplore shows reference to Job as expected.

JobExplore class has multiple references to Job also.

class JobExplore : public Job, public Job, public Job, public Job
{
public:
...

The xmi file had following against Job section:
       <UML:GeneralizableElement.generalization>
        <UML:Generalization xmi.idref="499043" />
        <UML:Generalization xmi.idref="499043" />
       </UML:GeneralizableElement.generalization>




More information about the umbrello-devel mailing list