Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307394 - The state of objects become INVALID instead of PROXY on branch switch
Summary: The state of objects become INVALID instead of PROXY on branch switch
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 10:04 EDT by Erwin Betschart CLA
Modified: 2010-06-29 09:20 EDT (History)
0 users

See Also:


Attachments
Proposed fix. (928 bytes, patch)
2010-03-29 10:08 EDT, Erwin Betschart CLA
stepper: iplog+
Details | Diff
testcase (2.55 KB, text/plain)
2010-03-29 10:10 EDT, Erwin Betschart CLA
stepper: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Betschart CLA 2010-03-29 10:04:53 EDT
Build Identifier: 3.0.0

Scenario: 
- view1 on branch main
- Branch subbranch (forked from main without changes)

If the branch of view1 is changed to subbranch all already loaded objects become INVALID.

Reproducible: Always

Steps to Reproduce:
Testcase will be attached.
Comment 1 Erwin Betschart CLA 2010-03-29 10:08:54 EDT
Created attachment 163272 [details]
Proposed fix.

Enable load on demand.
Comment 2 Erwin Betschart CLA 2010-03-29 10:10:26 EDT
Created attachment 163273 [details]
testcase

Extended BranchingTest.
Comment 3 Erwin Betschart CLA 2010-03-29 10:14:17 EDT
Forgot to mention:

Expected state after brach switch: 
Detached objects -> INVALID
Other objects -> PROXY
Comment 4 Erwin Betschart CLA 2010-03-29 10:25:10 EDT
1) The number of lines that you changed is smaller than 250.
confirmed
2) You are the only author of these changed lines.
confirmed
3) You apply the EPL to these changed lines.
confirmed
Comment 5 Eike Stepper CLA 2010-03-29 11:46:06 EDT
Thank you, good catch, Erwin!

Committed to HEAD
Comment 6 Eike Stepper CLA 2010-03-29 11:48:17 EDT
Thank you, good catch, Erwin!

Committed to HEAD
Comment 7 Eike Stepper CLA 2010-06-29 04:36:12 EDT
Available in 3.0 GA:
http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/