Community
Participate
Working Groups
The implementation of the primitive behavior IntegerFunctions::Div (org.eclipse.papyrus.moka.fuml.standardlibrary.library.integer.Div) logs an error if there is a division by zero an returns no output ParameterValues. This is not quite correct. According to the fUML specification (9.3.2), division by zero should provide a "null" result. Per fUML semantics that means that, in this case, the implementation should return a single output ParameterValue, but that this ParameterValue should have an empty list of values. The implementation of Div should explicitly check for a zero second argument and generate the correct output in this case.