Summary: | crash on imported c++ classes | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Jose N Hinckel <hinckel> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 1.3.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
class species
header for class Tspeciesdb header for class Tspeciesdb |
Description
Jose N Hinckel
2005-03-02 13:24:49 UTC
Created attachment 9917 [details]
class species
Created attachment 9919 [details]
header for class Tspeciesdb
Created attachment 9920 [details]
header for class Tspeciesdb
Cannot confirm with 1.4.
Here's what I did:
- Import species.h and the second version of speciesdb.h (attachment 9920 [details])
- Drag Tspecies and Tspeciesdb onto class diagram
- No association is shown... I guess this could use improvement, for example
we could at least generate a "dependency".
- Drag the datatype "map<string, Tspecies*>" onto the diagram:
the composition association for "fdb" at Tspeciesdb is shown on the diagram
- Right click on Tspeciesdb on the diagram, select Properties->Attributes,
select "fdb", add text in the Documentation field
- Save the model, close, load the model
- Everything is fine.
I think I traced the problem!!!!!!!!!!! Strangely enough after importing the classes the system crashes after approximately 30 seconds even without doing any work at all. I checked the generated xmi file and found that it was corrupted. It seems that the importer gets confused when it encounters the character "<" which is also a special character for the xmi format. the "comp" attribute of the Tspecies class (species.h file) is corrupted in the xmi file. vector<pair<string ,double> > comp; in header file type="vector< pair < string , double > > in xmi file Due to lack of developers, the 1.3.x versions are no longer maintained. Please use 1.4 (to be released in a few days) or at least 1.4beta2. Anyway, I took another look and there _is_ a problem: The datatype for "comp" and other nested-template-instantation attributes is not promoted to the model properly (truncated to "vector" instead of e.g. "vector<pair<string,double>>"). Feel free to raise a separate PR for this. |