[Uml-devel] [Bug 122914] New: crash when refusing to rename a class on importing typedef
Yan Morin
yansanmo at iquebec.com
Wed Mar 1 22:51:01 UTC 2006
------- 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=122914
Summary: crash when refusing to rename a class on importing
typedef
Product: umbrello
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
AssignedTo: umbrello-devel.kde.org
ReportedBy: yansanmo iquebec com
Version: (using KDE KDE 3.5.1)
Installed from: Compiled From Sources
OS: Linux
There is a bug in umbrello on Cpp Import with Template + typedef that produce another bug when importing twice a file.
cpptree2uml.cpp:155
The typedef importation tries to create the typedef inner class.
It uses Import_Utils::createUMLObject() and doesn't see the bad templated datatype and think that the function has to create it.
It tries to create it, and then it sees that the templated datatype already exists, so it wants to rename it.
The user say 'no', return 0, and then bang! umbrello crashes because it uses a 0 pointer.
It crashes after import_utils.cpp:189
Easy test.h file:
namespace test {
typedef std::map<std::string, ItemMap*> SectionMap;
typedef std::map<std::string, SectionMap*> SectionMapMap;
}
Import this file two times, and say no to the 'rename' dialog.
More information about the umbrello-devel
mailing list