| Summary: | Fix index for moves from left to right | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Cyril Jaquier <cyril.jaquier> | ||||||||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | pascal.lehmann | ||||||||||
| Version: | 4.1 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Cyril Jaquier
Created attachment 198383 [details]
Fix the index for moves from left to right
Moving all open problem reports to 4.0 I just wanted to study this patch but I could not apply it. For some reason I get the error message "org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/delta/CDOMoveFeatureDeltaImpl.java (file does not exist)". See the screenshot I'm about to attach. But this file does exist. Can it be a problem with projects in non-default locations? Cyril, can you please try to create a new patch and this time set the Patch Root to Workspace on the second page? Created attachment 199009 [details]
Error Screenshot
Created attachment 199032 [details]
Fix the index for moves from left to right
Hi Eike, I just setup a new CDO workspace and I could apply my patch without problem!? I generated a new one using "Patch Root to Workspace". Give it a try ;-) Created attachment 199043 [details]
Fix the index for moves from left to right
I added a basic test case. I didn't find a better one... I guess it should be possible to write something using org.eclipse.emf.spi.cdo.DefaultCDOMerger.PerFeature.ManyValued.handleListDelta() which calls adjustAfterRemoval() internally. Pascal, do you remember a test case for this one!? Hm, the problem with applying the patch probably came from a screwed up workspace. I spent a half day today with checking out new wqorkspaces and now it works. Anyway, it's always easier to apply workspace rooted patches ;-) Your patch and the test look good to me. Pascal do you want to commit them or shall I? All tests are passing. I'm going to commit the changes now... Committed revision 8590: - trunk/plugins/org.eclipse.emf.cdo.common - trunk/plugins/org.eclipse.emf.cdo.tests Committed revision 8590 Closing. |