Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340706 - LoadTransition notifies ObjectStateHandler before revision is set
Summary: LoadTransition notifies ObjectStateHandler before revision is set
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 247141
  Show dependency tree
 
Reported: 2011-03-22 16:32 EDT by Eike Stepper CLA
Modified: 2011-06-23 03:38 EDT (History)
0 users

See Also:


Attachments

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