Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370581 - Second call off ProjectSpace.beginCompositeOperation() can lead to IllegalStateException
Summary: Second call off ProjectSpace.beginCompositeOperation() can lead to IllegalSta...
Status: RESOLVED WORKSFORME
Alias: None
Product: EMFStore
Classification: Modeling
Component: ServerCore (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.3.0   Edit
Assignee: Johannes Faltermeier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 371885 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-03 11:56 EST by Max Hohenegger CLA
Modified: 2014-06-04 09:36 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Hohenegger CLA 2012-02-03 11:56:24 EST
Even though the CompositeOperation is ended as shown in the example below, a second call of said method can result in a IllegalStateException.
This issues should be reproduced with a testcase first.

ProjectSpace projectSpace = WorkspaceManager.getProjectSpace(matrix);
projectSpace.beginCompositeOperation();

ECPCommand ecpCommand = new ECPCommand(matrix) {
	@Override
	protected void doRun() {
		//[...]
	}
};
ecpCommand.run(false);

projectSpace.getOperationManager().endCompositeOperation();
Comment 1 Edgar Mueller CLA 2014-03-04 10:17:26 EST
*** Bug 371885 has been marked as a duplicate of this bug. ***
Comment 2 Johannes Faltermeier CLA 2014-06-04 09:36:36 EDT
See existing CompositeOperationTest#beginSubsequentCompositeOperations for a test case. 
Issue seems to be resolved -> works for me