| Summary: | CDOCommonUtil.isValidTimeStamp() does not work for UNSPECIFIED_DATE | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | critical | ||||||
| Priority: | P3 | ||||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Eike Stepper
Better:
public static boolean isValidTimeStamp(long timeStamp, long startTime, long endTime)
{
if (timeStamp == CDOBranchPoint.UNSPECIFIED_DATE)
{
return endTime == CDOBranchPoint.UNSPECIFIED_DATE;
}
return (endTime == CDOBranchPoint.UNSPECIFIED_DATE || endTime >= timeStamp) && timeStamp >= startTime;
}
Created attachment 180690 [details]
Patch v1 - for future reference
The patch also fixes an issue with handling revisions in MEMStore
Committed to HEAD Available in R20110608-1407 |