Skip to content

ST6RI-975 (supplemental) The derivation of Feature::multiplicity is incorrect - #820

Merged
seidewitz merged 1 commit into
masterfrom
ST6RI-975
Oct 21, 2026
Merged

seidewitz merged 1 commit into
masterfrom
ST6RI-975

Conversation

@seidewitz

Copy link
Copy Markdown
Member

This PR fixes an additional issue relative to the computation of the owned multiplicity of a type.

PR #809 corrected the implementation of Type::getMultiplicity. However the implementation of the constraint validateTypeOwnedMultiplicity does not use getMultiplicity -- it can't, because getMultiplicity always returns zero or one value, and the constraint check needs to count all owned multiplicities to ensure there is no more than one. This means that the validation computation needs to be updated independently of the derivation computation. That is what is done in this PR.

@seidewitz seidewitz added this to the 2026-09 milestone Oct 21, 2026
@seidewitz seidewitz self-assigned this Oct 21, 2026
@seidewitz seidewitz added the bug Something isn't working label Oct 21, 2026
@seidewitz seidewitz changed the title ST6RI-975 Updated validateTypeOwnedMultiplicity impl to be per spec. ST6RI-975 The derivation of Feature::multiplicity is incorrect Oct 21, 2026
@seidewitz seidewitz changed the title ST6RI-975 The derivation of Feature::multiplicity is incorrect ST6RI-975 (supplemental) The derivation of Feature::multiplicity is incorrect Oct 21, 2026
@seidewitz
seidewitz merged commit fdba9c4 into master Oct 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant