Skip to content

GROOVY-12184: unsound cast for property access on union type (Groovy 5) - #2728

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

GROOVY-12184: unsound cast for property access on union type (Groovy 5)#2728
paulk-asert merged 1 commit into
apache:GROOVY_5_0_Xfrom
paulk-asert:groovy12184

Conversation

@paulk-asert

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

Copy link
Copy Markdown
Contributor
test.id

throws ClassCastException after:

(test instanceof X1 || test instanceof X2)

…eof A || instanceof B) throws ClassCastException (fix for GROOVY_5_0_X)
@paulk-asert paulk-asert changed the title GROOVY-12184: unsound cast for property access on union type (instanc… GROOVY-12184: unsound cast for property access on union type (Groovy 5) Jul 23, 2026
@paulk-asert
paulk-asert merged commit 09a2d2f into apache:GROOVY_5_0_X Jul 23, 2026
27 checks passed
@paulk-asert
paulk-asert deleted the groovy12184 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