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

Bug 340706

Summary: LoadTransition notifies ObjectStateHandler before revision is set
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 247141    

Description Eike Stepper CLA 2011-03-22 16:32:43 EDT
LoadTransition had this code:

      changeState(object, CDOState.CLEAN);
      object.cdoInternalSetRevision(revision);

This leads to possible ObjectStateHandlers being notified with the revision still being null. Must be:

      object.cdoInternalSetRevision(revision);
      changeState(object, CDOState.CLEAN);
Comment 1 Eike Stepper CLA 2011-03-22 16:33:18 EDT
Committed revision 7575:
- trunk/plugins/org.eclipse.emf.cdo
Comment 2 Eike Stepper CLA 2011-03-22 16:33:51 EDT
Resolving.
Comment 3 Eike Stepper CLA 2011-06-23 03:38:23 EDT
Available in R20110608-1407