Skip to content

fix equivalence of array types - #658

Merged
Ladicek merged 2 commits into
smallrye:mainfrom
Ladicek:fix-array-type-equivalence
Mar 31, 2026
Merged

Ladicek merged 2 commits into
smallrye:mainfrom
Ladicek:fix-array-type-equivalence

Conversation

@Ladicek

@Ladicek Ladicek commented Mar 31, 2026

Copy link
Copy Markdown
Member

No description provided.

Ladicek added 2 commits March 31, 2026 10:37
In case an array type has annotations on components, an equivalence key
wouldn't be created correctly. It would be created from the constituent
type, which means the original positions of annotations are still included
in the internal representation.

This commit fixes it by creating an equivalence key from the element type
(and the "deep" number of dimensions). This way, not only are annotations
dropped, but their positions too.
The previous implementation of this method might have left existing annotations
on the owner type, if it exists. This commit removes annotations from the owner
type as well.
@Ladicek Ladicek added this to the 3.5.4 milestone Mar 31, 2026
@Ladicek
Ladicek merged commit bc8692e into smallrye:main Mar 31, 2026
43 checks passed
@Ladicek
Ladicek deleted the fix-array-type-equivalence branch March 31, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant