This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108257

Summary: rules for multiplicity are different in operation parameters and return type/attribute miltiplicity dialogs
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: Diagram ClassAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Andrew Korostelev 2007-06-27 10:28:09 UTC
there are different allowed multiplicity ranges in multiplicity dialogs for return type,attribute and for operation
parameter.

operation parameter multiplicity dialogs more or less follows spec (except issue 108024, issue 108025).
operation return type and attribute multiplicity dialogs allow to set lower bound > upper bound.

according to  UML Superstructure:
 7.3.32 MultiplicityElement (from Kernel)
     Constraints:
     [1] A multiplicity must define at least one valid cardinality that is greater than zero.
          upperBound()->notEmpty() implies upperBound() > 0
     [3] The upper bound must be greater than or equal to the lower bound.
     (upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()
Comment 1 George Vasick 2008-06-10 17:10:41 UTC
Removing obsolete assignments.  Bugs will be reassigned for M2.