Bug 199310 - Umbrello Generates bad attribute types from old .xmi file
Summary: Umbrello Generates bad attribute types from old .xmi file
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 17:33 UTC by Mark Gardinier
Modified: 2018-12-10 00:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.XMI causing error and better description with pictures. (108.73 KB, application/x-compressed-tar)
2009-07-07 17:53 UTC, Mark Gardinier
Details
Changed sst.xmi file to load without message boxes. (20.49 KB, application/x-bzip)
2009-07-18 15:28 UTC, Andi Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Gardinier 2009-07-07 17:33:05 UTC
Version:           2.2.4 (using KDE 4.2.4)
OS:                Linux
Installed from:    Fedora RPMs

I am starting up an old project after almost 2 years of inactivity.  We used Umbrello on this project.

The old Umbrello was able to read in an .xmi file and define class attributes, lets call them -> Min Green Interval, Max Green Interval, and Yellow Interval to types declared in a stand alone Ada95 class (System_Types).  For example, one system type, System_Types.Seconds is defined as "subtype Seconds is float range 0.0 .. 120.0".  On the class model diagram, the class attribute looks like "+Min_Green_Interval : System_Types.Seconds".  

This was good.  

When reading the same .xmi file, the Umbrello UML Modeller Version 2.2.4 Using KDE 4.2.4 gives the message “an object with the name new_class already exists in the package Logical View.  Please enter a new name”.    The command history window shows “rename objects” occurring.  The attributes Min_Green_Interval, Max_Green_Interval, and Yellow_Interval now are of new_class_13, new_class_14, and new_class_15 types.  

Overall, 28 new classes are created (new_class_1 .. new_class_28).  On the class diagram I am using there happens to be 14 attributes defined of System_Type.something.  

That is wrong.

It appears that System_Types.Seconds (or any other type defined in system_types) is ignored.  The only exception I can find is when System Types is used in a method.  The interface class, clock, has a method called Current_Time.  This procedure returns Time_Of_Day of type System_Types.Time.  It is correct on the new diagram.
Comment 1 Mark Gardinier 2009-07-07 17:53:40 UTC
Created attachment 35126 [details]
.XMI causing error and better description with pictures.
Comment 2 Andi Fischer 2009-07-18 15:15:52 UTC
Edited the xmi file by hand and removed the duplicated types.
File is loading now without message box. But there are still a lot of debug messages in the console.
Comment 3 Andi Fischer 2009-07-18 15:28:27 UTC
Created attachment 35432 [details]
Changed sst.xmi file to load without message boxes.
Comment 4 Andrew Crouthamel 2018-11-02 22:59:45 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-11-16 05:24:57 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!