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

Bug 360352

Summary: [Legacy] CDODeltaNotification.getNewValue() returns a CDOLegacyWrapper instead of the wrapped EObject
Product: [Modeling] EMF Reporter: Martin Fluegge <martin.fluegge>
Component: cdo.legacyAssignee: Martin Fluegge <martin.fluegge>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: esteban.dugueperoux, steve.monnier
Version: 4.0Flags: stepper: review+
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch v1 (combined) none

Description Martin Fluegge CLA 2011-10-09 07:21:31 EDT
Cloned from: 359992: [Legacy] CDODeltaNotification.getNewValue() returns a CDOLegacyWrapper instead of the wrapped EObject
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359992

Build Identifier: CDO Model Repository SDK	4.0.0.v20110831-1303	org.eclipse.emf.cdo.sdk.feature.group

In legacy mode, with CDOTransaction.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL) set, on commit of a new legacy object added, the remote clients receives a CDODeltaNotification with newValue instanceof CDOLegacyWrapper

Reproducible: Always

This is the 4.0 version of the bug fixed on HEAD (4.1)
Comment 1 Martin Fluegge CLA 2011-10-09 08:33:18 EDT
Created attachment 204833 [details]
Patch v1 (combined)

I adapted the patch to 4.0.
Comment 2 Eike Stepper CLA 2011-10-10 02:26:13 EDT
Hi Martin, when you clone bugs, please ensure that the assignee is initially not set. Only then it goes through the inbox and other users have the chance to cc themselves by watching the inbox user ;-)
Comment 3 Eike Stepper CLA 2011-10-10 02:27:33 EDT
Strange, the patch is full of conflicts if applied against 4.0.
Comment 4 Martin Fluegge CLA 2011-10-10 03:04:54 EDT
> Strange, the patch is full of conflicts if applied against 4.0.

Hmm, strange. I'll check this when I am at home.
Comment 5 Martin Fluegge CLA 2011-10-10 13:04:18 EDT
Eike,

I had no problem applying the patch against the 4.0 branch. Only if I try to apply it against HEAD it produces conflicts. Did you choose the wrong branch by accident?

Could you please re-check?
Comment 6 Eike Stepper CLA 2011-10-10 13:24:59 EDT
My workspace was not in sync ;-(
Comment 7 Martin Fluegge CLA 2011-10-10 13:41:22 EDT
Committed revision 9471
Comment 8 Eike Stepper CLA 2012-09-21 06:51:10 EDT
Closing.