| Summary: | Import of other Ecore models does not allow to reuse the imported declarations | ||
|---|---|---|---|
| Product: | [Modeling] OCL | Reporter: | Michele Mancioppi <michele.mancioppi> |
| Component: | Core | Assignee: | OCL Inbox <mdt-ocl-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | ed |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Michele Mancioppi
Sorry somehow I missed this one. I don't think it's critical; at most major since the problem is on the 'load' path.
Using Indigo SR1, I cannot reproduce the problem on an extends, but I can reproduce the type reference problem:
module _'A.ecore'
package a : aaa = 'platform:/resource/Activity/A.ecore'
{
class A;
class A2;
}
-----------------------------------------------------------------
module _'B.ecore'
import ecore : 'http://www.eclipse.org/emf/2002/Ecore#/';
import aaa : 'A.ecore#/';
package b : bbb = 'platform:/resource/Activity/B.ecore'
{
class B extends aaa::A
{
property a2 : aaa::A2;
}
}
reloads as
module _'B.ecore'
import ecore : 'http://www.eclipse.org/emf/2002/Ecore#/';
import aaa : 'A.ecore#/';
package b : bbb = 'platform:/resource/Activity/B.ecore'
{
class B extends aaa::A
{
property a2 : ecore::EObject[1];
}
}
I cannot reproduce this again. It would seem that I got lucky/unlucky with the exact ordering of editorial errors and saves. One possibility is that a save was performed while the source text contained errors, which either were not shown to the user or were not diagnosed so as to inhibit a save. There is certainly no inhibition on saving when errors are shown so deliberately corrupting a reference emulates the repro. Bug 363273 raised for the save hazard. CLOSED after a year in the RESOLVED state. |