Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350049 - IndependentUnit and PriorityUnit with 0 subUnits can not be executed
Summary: IndependentUnit and PriorityUnit with 0 subUnits can not be executed
Status: RESOLVED WONTFIX
Alias: None
Product: EMFT.Henshin
Classification: Modeling
Component: Interpreter (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-22 09:33 EDT by Felix Rieger CLA
Modified: 2012-02-02 05:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.