[Uml-devel] [Bug 193080] New: cpp import error when class name in multiple namespaces

Ralf Habacker ralf.habacker at freenet.de
Mon May 18 07:24:55 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=193080

           Summary: cpp import error when class name in multiple
                    namespaces
           Product: umbrello
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel at kde.org
        ReportedBy: ralf.habacker at freenet.de


Version:            (using Devel)
Installed from:    Compiled sources

Importing the following classes works as excepted. 

namespace Base {

/** 
    holds a single xml element
    A xml element is setup of a tag name, tag attributes and content 
*/
class Element {
...
);
class Assembly : public Base::Element {
    public: 

        Assembly() : Base::Element("assembly")
        {
        }
};

}

In the list view there is a 'Base' package contaning two classes Element and
Assembly. Both class are assigned to the Base namespace (verified by opening
the class properties, as Package 'Base' is selected)

Importing the following class afterwards or at the same time as the previous
classes 

class Assembly : public Base::Assembly {
    public: 

        Assembly()
        {
        }
};

corrupts the class structure.  

A message box complaining that class Assembly is already present raises up and
forces the user to enter a new class name (new_class as default taken)

The List view now contains a newly imported class Assembly in the public
namespace, which is expected. 

The previously imported class Base::Assembly in the base package is renamed to
new_class and is not anymore assigned to the 'Base' package although in the
list view it is still named 'Assembly' and located in the Base Package.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the umbrello-devel mailing list