[umbrello-devel] [umbrello] [Bug 336810] Incorrect namespace assignment of base class with c++ import

Ralf Habacker ralf.habacker at freenet.de
Tue Jul 1 10:53:53 UTC 2014


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

--- Comment #9 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to comment #8)
> (In reply to comment #5)
> > An additional failing testcase
> > 
> ...
> 
> > namespace N1 {
> > 
> >   /// class N1::A
> > class A { public:  A(); };
> > }
> > 
> The problem here is that N1::A shows package path N1 in properties (which is
> correct), but is shown directly below logical view in the tree view
In detail: On calling import_utils.cpp::CreateUmlObject() to create N1::A  the
call to 
UMLObject * o = umldoc->findUMLObject(name, type, parentPkg);

on line import_utils.cpp:209 returns the UMLObject of class A  in the global
namespace which is wrong; it should return zero. 

The reason why the global object is returned is documented in
Model_Utils::findUMLObject()

 * @param currentObj    Object relative to which to search (optional.)
 *                      If given then the enclosing scope(s) of this
 *                      object are searched before the global scope.

The search should be limit to the namespace given by currentObj.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list