| Summary: | MEMStore is too tolerant against with branch creation if branching is not enabled | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> |
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> |
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> |
| Severity: | minor | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Eike Stepper
Adding a check in Repository.java:
public int createBranch(int branchID, BranchInfo branchInfo)
{
if (!isSupportingBranches())
{
throw new IllegalStateException("Branching is not supported by " + this);
}
synchronized (createBranchLock)
{
IStoreAccessor accessor = StoreThreadLocal.getAccessor();
return accessor.createBranch(branchID, branchInfo);
}
}
Committed to HEAD Reopen for changing assignee Assignee changed Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/ |