Bug 440653 - ClassCircularityError when loading models depending on diagram.ecore if Sirius is not already initialized
Summary: ClassCircularityError when loading models depending on diagram.ecore if Siriu...
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 1.0.1   Edit
Assignee: Maxime Porhel CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
: 446508 446509 446510 448153 448154 449314 450274 (view as bug list)
Depends on: 436435
Blocks:
  Show dependency tree
 
Reported: 2014-07-29 10:31 EDT by Maxime Porhel CLA
Modified: 2015-05-20 07:55 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Porhel CLA 2014-07-29 10:31:01 EDT
+++ This bug was initially created as a clone of Bug #436435 +++

Since Sirius rc1 is available, I have a problem related to Sirius bundles loading in the case or an ecore model reference Sirius ecore models (viewpoint.ecore and diagram.ecore). 

Here's a simplified example that causes this problem. 

I have two ecore models: MainModel.ecore which is extensible and DiagramUse.ecore which is an extension to MainModel.ecore (see classes.jpg). Models and projects are available in diagram.zip. 

DiagramUse.ecore contains ModelRootElement EClass that has an: 
1 - EReference whose EType is "org.eclipse.sirius.diagram/model/diagram.ecore#//Description/DiagramDescription" 
2 - EAttribute whose EType is "org.eclipse.sirius/model/viewpoint.ecore#//LabelAlignment" 

Here's a scenario to reproduce the problem:
1. Import all the projects from diagram.zip into the workspace. Everything should build without error.
2. Launch a runtime (using the default parameters).
3. In the runtime's workspace, create a basic project, 
4. Inside the project, create a "MainModel Model" (available in New > Other > Example EMF Model Creation Wizards). Choose "Model Root" as the root element type.
5. Open "My.mainmodel". It contains a single "Model Root" element.
6. In "Model Root" element, create a child of type "Model Rool Element"
7. Close the editor, and close the (runtime) Eclipse.
8. Restart the runtime. Open the project, and open the "My.mainmodel"
Comment 1 Maxime Porhel CLA 2014-07-31 09:14:49 EDT
See https://git.eclipse.org/r/30800
Comment 2 Maxime Porhel CLA 2014-08-04 10:19:59 EDT
Corrected on 1.0.x branch by commit 87e7457917d198c4fbf25db2ea6713266336a94a
Comment 3 Maxime Porhel CLA 2014-08-04 10:20:57 EDT
Corrected on v1.0.x branch by commit 14b7ad13dc5136df1f1bc7d68410f41b7d9feb75


The previous comment indicate the master commit id.
(In reply to Maxime Porhel from comment #2)
> Corrected on 1.0.x branch by commit 87e7457917d198c4fbf25db2ea6713266336a94a
Comment 4 Cedric Brun CLA 2014-10-23 08:58:03 EDT
*** Bug 446510 has been marked as a duplicate of this bug. ***
Comment 5 Cedric Brun CLA 2014-10-23 09:17:01 EDT
*** Bug 446508 has been marked as a duplicate of this bug. ***
Comment 6 Cedric Brun CLA 2014-10-23 09:54:37 EDT
*** Bug 448153 has been marked as a duplicate of this bug. ***
Comment 7 Cedric Brun CLA 2014-10-23 09:55:41 EDT
*** Bug 446509 has been marked as a duplicate of this bug. ***
Comment 8 EPP Error Reports CLA 2014-10-29 04:53:16 EDT
*** Bug 448154 has been marked as a duplicate of this bug. ***
Comment 9 Cedric Brun CLA 2014-11-14 03:54:51 EST
*** Bug 450274 has been marked as a duplicate of this bug. ***
Comment 10 Cedric Brun CLA 2014-11-14 03:56:10 EST
*** Bug 449314 has been marked as a duplicate of this bug. ***
Comment 11 Pierre-Charles David CLA 2015-05-20 07:55:26 EDT
Available in Sirius 1.0.1.