Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321344

Summary: Error report on mixing different views
Product: [Modeling] EMF Reporter: Egidijus Vaisnora <vaisegid>
Component: cdo.coreAssignee: Project Inbox <emf.cdo-inbox>
Status: CLOSED DUPLICATE QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: martin.fluegge
Version: 4.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
test attached
none
Test v2 none

Description Egidijus Vaisnora CLA 2010-07-30 09:50:36 EDT
When I had tried to set opposite reference to the object from the different view, cdo framework doesn't complained. Consequences for such action was, that my model got inconsistent, because one opposite end had correct value set, while it's opposite not.
Comment 1 Egidijus Vaisnora CLA 2010-07-30 09:53:08 EDT
Created attachment 175576 [details]
test attached
Comment 2 Martin Fluegge CLA 2010-07-30 12:37:29 EDT
Created attachment 175594 [details]
Test v2

Hi Egidijus,

I had a quick look to your test it it seems to me that the problem you are describing is quite similar to the one covered by Bug 305527. 
If you agree that this is the same issue we could close this one as duplicated and proceed on 305527.

I modified your test case slightly to make it legacy aware. 

When accessing CDO related properties from an object it's always best to get this object using CDOUtil.getCDOObject() first. Otherwise you would get a ClasscastException when running a legacy scenario because in this case the object is just a normal EMF object and not a CDO native one. 

When using CDOUtil to get the object the test logic is transparent to NATIVE and LEGACY scenarios...in most cases ;)
Comment 3 Egidijus Vaisnora CLA 2010-08-02 02:57:12 EDT
Yes, 305527 looks like the similar issue. We can close this one
Comment 4 Martin Fluegge CLA 2010-08-03 13:19:47 EDT
Closed because it's duplicate of Bug 305527.

*** This bug has been marked as a duplicate of bug 305527 ***
Comment 5 Eike Stepper CLA 2011-06-23 04:26:56 EDT
Moving all open problem reports to 4.0
Comment 6 Eike Stepper CLA 2012-09-21 06:51:23 EDT
Closing.