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

Bug 266857

Summary: Change subscription are not registered correctly for new CDOResource objects
Product: [Modeling] EMF Reporter: Simon Mc Duff <smcduff>
Component: cdo.coreAssignee: Simon Mc Duff <smcduff>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stepper
Version: 2.0   
Target Milestone: M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Simon Mc Duff CLA 2009-03-03 09:59:17 EST
By looking at the code I found an error. (I did) :-)

CDOVIewIMpl
  public void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
    {
      handleNewObjects(commitContext.getNewObjects().values());
      handleNewObjects(commitContext.getNewObjects().values());
      handleDetachedObjects(commitContext.getDetachedObjects().keySet());
    }

Should be 
  public void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
    {
      handleNewObjects(commitContext.getNewResources().values());
      handleNewObjects(commitContext.getNewObjects().values());
      handleDetachedObjects(commitContext.getDetachedObjects().keySet());
    }

Please add a testcase & Fix that :-)
Comment 1 Simon Mc Duff CLA 2009-03-15 10:59:05 EDT
Committed to HEAD
Comment 2 Eike Stepper CLA 2009-04-02 17:34:53 EDT
Fix available in EMF CDO 2.0.0M6b
Comment 3 Eike Stepper CLA 2009-06-27 11:49:41 EDT
Generally available.