| Summary: | [UMLPropertiesView] Multiplicity parser should not be restricted to only integer literals | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Alain Le Guennec <alain.leguennec> | ||||||
| Component: | Core | Assignee: | Project Inbox <mdt-papyrus-inbox> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cletavernier, eclipse-bugzilla, papyrus-bugs, yann.tanguy | ||||||
| Version: | 0.8.1 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Alain Le Guennec
Created attachment 207157 [details]
The model used to reproduced the issue.
Created attachment 207158 [details]
Screenshot illustrating multiplicity with expressions
Diagram support is incorrect because the test comparing current multiplicity to UML default (relates to the "Show default multiplicity" option). The test uses MultiplicityElement#/lower et /upper which always return an integer, whatever the upperValue and lowerValue, and in particular always return 1 when upper and lower cannot be interpreted as integers. The test shall be done using current lowerValue and upperValue directly. Done in r6263 (0.9.X) and r6264 (trunk). Property view support style to be added. Assume default multiplicity when no lowerValue and upperValue (null) are given. Done in r6266 (0.8.X) and r6267 (trunk). |