Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350049

Summary: IndependentUnit and PriorityUnit with 0 subUnits can not be executed
Product: [Modeling] EMFT.Henshin Reporter: Felix Rieger <riegerf>
Component: InterpreterAssignee: Project Inbox <henshin.interpreter-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Felix Rieger CLA 2011-06-22 09:33:49 EDT
According to the model, both IndependentUnit and PriorityUnit can contain 0..* subUnits. However, executing IndependentUnits or PriorityUnits containing 0 subUnits will not work, i.e. execute() returns false.
(Executing an empty SequentialUnit, however, returns true.)

This should be fixed, either by changing the model to require at least 1 subUnit (see bug 348220), or by returning true when executing empty IndependentUnits or PriorityUnits.
Comment 1 Felix Rieger CLA 2012-02-02 05:50:49 EST
This behavior is intentional.