Login | Register
My pages Projects Community openCollabNet

Discussions > Notification of Issues > [argouml-issues] [Issue 6521] New - Troubles with diamond inheritance

argouml
Discussion topic

Back to topic list

[argouml-issues] [Issue 6521] New - Troubles with diamond inheritance

Author jmvanel
Full name Jean-Marc Vanel
Date 2016-10-28 17:20:41 PDT
Message http://argouml.tigri​s.org/issues/show_bu​g.cgi?id=6521
                 Issue #|6521
                 Summary|Troubles with diamond inheritance
               Component|argouml
                 Version|current
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|GUI
             Assigned to|bobtarling
             Reported by|jmvanel






------- Additional comments from jmvanel at tigris dot org Fri Oct 28 05:32:14 -0700 2016 -------
A model with diamond inheritance is incorrectly diagnosed as "cyclic inheritance".
Moreover, when selecting "inheritance centered" tree view, the software enters a
non-responsive frozen state.
Even when turning critique off.

Problem exists also with the current code in git.

My understading :

The algorithm used to gather recursively subclasses is used both in:
- critique: detecting inheritance problems
- displaying inheritance tree view

To work with my model, I commented out the throwing of an exception.
But this is not a good solution, because with a real cyclic inheritance an
infinite loop would certainly occur.

The design of the algorithm to detect inheritance problem is a problem, because
it just throws an exception when seeing a parent-child pair for the second time.
But I'm not sure if there is enough information gathered to diagnose correctly a
cycle.

But, more importantly, the exception is probably not or badly caught in the
displaying of inheritance tree view.

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[argouml-issues] [Issue 6521] New - Troubles with diamond inheritance jmvanel Jean-Marc Vanel 2016-10-28 17:20:41 PDT
Messages per page: