Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321344 - Error report on mixing different views
Summary: Error report on mixing different views
Status: CLOSED DUPLICATE of bug 305527
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 09:50 EDT by Egidijus Vaisnora CLA
Modified: 2012-09-21 06:51 EDT (History)
1 user (show)

See Also:


Attachments
test attached (2.69 KB, text/plain)
2010-07-30 09:53 EDT, Egidijus Vaisnora CLA
no flags Details
Test v2 (3.56 KB, patch)
2010-07-30 12:37 EDT, Martin Fluegge CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.