Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315043 - Inconsistent behavior of getRevisionByVersion()
Summary: Inconsistent behavior of getRevisionByVersion()
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 3.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Egidijus Vaisnora CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 05:41 EDT by Egidijus Vaisnora CLA
Modified: 2012-09-21 06:51 EDT (History)
1 user (show)

See Also:
stepper: review+


Attachments
test (4.74 KB, application/octet-stream)
2010-06-10 04:51 EDT, Egidijus Vaisnora CLA
no flags Details
patch (20.02 KB, text/plain)
2010-06-10 07:09 EDT, Egidijus Vaisnora CLA
no flags Details
Test+Fix v2 - ready to be committed (21.16 KB, patch)
2010-07-26 05:32 EDT, Eike Stepper CLA
no flags Details | Diff
binary compatible (21.00 KB, patch)
2010-08-09 04:49 EDT, Egidijus Vaisnora CLA
no flags Details | Diff
Patch v4 - ready to be committed (23.27 KB, patch)
2010-08-09 05:46 EDT, Eike Stepper CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Egidijus Vaisnora CLA 2010-05-31 05:41:47 EDT
Build Identifier: 3.0

getRevisionByVersion on detached revision returns null or DetachedCDORevision, regarding the local cache.
Expected result, to have method working the same way. 
Perhaps it is worth to consider return DetachedCDORevision for detached revision version and *null* for non existing version

Reproducible: Always

Steps to Reproduce:
test
Comment 1 Egidijus Vaisnora CLA 2010-06-10 04:51:23 EDT
Created attachment 171615 [details]
test
Comment 2 Egidijus Vaisnora CLA 2010-06-10 07:09:51 EDT
Created attachment 171626 [details]
patch

Detached revision will be returned, if getRevisionByVersion is called for detached version
Comment 3 Eike Stepper CLA 2010-06-29 04:54:24 EDT
Rebasing all outstanding 3.0 problem reports to version 3.0.1
Comment 4 Eike Stepper CLA 2010-07-26 05:32:15 EDT
Created attachment 175205 [details]
Test+Fix v2 - ready to be committed

Looks good ;-)
Comment 5 Eike Stepper CLA 2010-07-28 09:00:51 EDT
Please do not commit this patch! Investigating whether I've accidentally made this patch against 4.0 (where it belongs, I think)...
Comment 6 Egidijus Vaisnora CLA 2010-08-09 04:49:57 EDT
Created attachment 176136 [details]
binary compatible

Removed "since 4.0" tags and leaved old methods for binary compatibility
Comment 7 Egidijus Vaisnora CLA 2010-08-09 04:53:35 EDT
Ready for review
Comment 8 Eike Stepper CLA 2010-08-09 05:46:36 EDT
Created attachment 176141 [details]
Patch v4 - ready to be committed

I had to add 3 @since tags, no idea why. Anyway ;-)
Comment 9 Egidijus Vaisnora CLA 2010-08-09 06:37:57 EDT
Committed to  R3_0_maintenance
Comment 10 Eike Stepper CLA 2011-06-23 04:26:51 EDT
Moving all open problem reports to 4.0
Comment 11 Eike Stepper CLA 2012-09-21 06:51:19 EDT
Closing.