Skip to content

GROOVY-12172: UnsupportedOperationException for property access on union type (Groovy 5) - #2727

Merged
paulk-asert merged 1 commit into
apache:GROOVY_5_0_Xfrom
paulk-asert:groovy12172
Jul 23, 2026
Merged

GROOVY-12172: UnsupportedOperationException for property access on union type (Groovy 5)#2727
paulk-asert merged 1 commit into
apache:GROOVY_5_0_Xfrom
paulk-asert:groovy12172

Conversation

@paulk-asert

@paulk-asert paulk-asert commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
test['id']

throws UnsupportedOperationException after:

(test instanceof X1 || test instanceof X2)

@paulk-asert paulk-asert changed the title GROOVY-12172: Groovy 5.0.7 fails to compile or startup with Unsupport… GROOVY-12172: compile or startup fails with UnsupportedOperationException for property access (Groovy 5) Jul 23, 2026
@paulk-asert paulk-asert changed the title GROOVY-12172: compile or startup fails with UnsupportedOperationException for property access (Groovy 5) GROOVY-12172: UnsupportedOperationException for property access on union type (Groovy 5) Jul 23, 2026
@paulk-asert
paulk-asert merged commit 7bb918b into apache:GROOVY_5_0_X Jul 23, 2026
27 checks passed
@paulk-asert
paulk-asert deleted the groovy12172 branch July 23, 2026 22:24
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